I'm running into a strange problem. I can access my classes singleton instance just fine, but if I try to access it again it just appears to hang. Here is a simple version of the code:
private let _SharedInstance = MyManager()
class MyManager: NSObject {
class var sharedInstance: MyManager {
return _SharedInstance
}
override init() {
super.init()
println("init")
println(self.accessToken())
println(MyManager)
println("test 1")
println(MyManager.sharedInstance)
println("test 2")
}
}
In this case it is calling it from within the init of itself, but it happens elsewhere.
The code never gets to test 2. As soon as it access MyManager.sharedInstance it hangs. No errors or warnings.
If I pause the debugger I can see it is currently having on semaphore_wait_trap
Picture (difference class names):

Restarting Xcode or the computer hasn't helped.