I have just used the Main Thread Checker which is certainly helpful.
However warning puzzles me. I call NSApplicationMain from main. This seems disturbing for the Main Thread Checker. Should I be concerned?
I have just used the Main Thread Checker which is certainly helpful.
However warning puzzles me. I call NSApplicationMain from main. This seems disturbing for the Main Thread Checker. Should I be concerned?
This is a limitation of how Xcode renders these warnings. NSApplicationMain is, obviously, fine to call on the main thread. The issue is that some code inside that, which you don’t have source code for, is calling something that might be problematic on the main thread.
For an in-depth discussion of this, albeit in a different context, see this post.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Sure enough, we end there with a similar stack through WebKit and SecTrustCopyCertificateChain (), and none of our code. We launch fine without network connection so I'll let it rest. Thank you!