Closed kirsplatrick closed 7 years ago
Thanks for the headsup. The new Main Thread Checker feature in XCode 9 flags this method as not able to run in background, even though previous documentation did not. Up until this bug our tests showed it to still be working fine even in the background. We will get a fix out for this as well as a few other Xcode 9 warnings as soon as possible.
Just some additional info. If this is preventing you from building, there is always the option to turn off the Main Thread Checker in Xcode. While not ideal, it should serve as a short term workaround.
To turn off the check open the "Product" menu item, select Schemes->Edit Scheme. Select the Diagnostic tab and uncheck the "Main Thread Checker" option. You might have to do this for both Run and Test schemes.
Thanks for the quick responses. We turned the Main Thread Checker off for tests since we were crashing there, but I believe the app itself is running ok, just with the runtime warning.
@kirsplatrick I have pushed a new version of the SDK. Please let me know if that fixes your issues. It seems to work fine in all our tests.
@SmithKevin This fixed our issue. Thanks for the quick work. 👍
Using the latest version of Quantcast in Xcode 9, we are seeing an issue where the framework calls a UI API method (specifically
UIApplication applicationState
) within a background thread. This causes a runtime warning when running the application but also a crash (log below) on running unit tests.