Home:ALL Converter>Is there a bug with Firebase/ AdMob SDK? Xcode Main Thread Checker iOS 11

Is there a bug with Firebase/ AdMob SDK? Xcode Main Thread Checker iOS 11

Ask Time:2017-10-06T08:46:55         Author:Ahmed Khedr

Json Formatter

I keep getting these warnings in iOS 11. Running the same app on devices with iOS 10 does not produce any of these warnings.

Main Thread Checker: UI API called on a background thread: -[UIApplication keyWindow]
PID: 4945, TID: 148126, Thread name: (none), Queue name: com.google.admob.sdk-core-controller, QoS: 0

Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]
PID: 4945, TID: 148126, Thread name: (none), Queue name: com.google.admob.sdk-core-controller, QoS: 0

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 4945, TID: 148099, Thread name: (none), Queue name: com.google.fira.worker, QoS: 9


Main Thread Checker: UI API called on a background thread: -[UIApplication supportedInterfaceOrientationsForWindow:]
PID: 4945, TID: 148126, Thread name: (none), Queue name: com.google.admob.sdk-core-controller, QoS: 0

I have got the latest pods:

pod 'Firebase/Core'
pod 'Firebase/AdMob'
pod 'Google/SignIn'

Author:Ahmed Khedr,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46596724/is-there-a-bug-with-firebase-admob-sdk-xcode-main-thread-checker-ios-11
Edess Elder :

I had the same issue when running on iOS 11. So here are the 2 options to solve it, for people who might get this error. \n\nOption 1 :\nWhen installing your dependencies using CocoaPods, instead of typing: \n\n$pod install\n\n\nyou should type\n\npod install --repo-update\n\n\nIf everything works well, pod will update your old version of AdMob SDK to the latest one. In this case, you're all set and don't need to try the Option 2\n\nOption 2:\nIf you read this part, it means that Pod didn't successfully update your Admob. In this case, you'll have to do it manually, which means (2 steps):\n\nstep 1) In your podfile, you have to comment the line and re-run pod install in the terminal\n\n#pod 'Google-Mobile-Ads-SDK'\n\n\nto remove the previously downloaded Admob framework. \n\nstep 2) Download a copy of the new version of the SDK framework directly, unzip the file, and import the framework into your project in Xcode. (check the image to see how to add frameworks to your Xcode project)\n\n\nimage source: Adding Frameworks to Your Xcode Project ",
2017-12-18T14:19:12
yy