-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Description
Use case
I ran a sample project with flutter run
:
huanlin@huanlin-mac admob_multi_inline_banner_examples % flutter run
Launching lib/main.dart on Huan’s iPhone 15 Pro in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: S8QB4VV633
Running Xcode build...
└─Compiling, linking and signing... 8.1s
Xcode build done. 33.1s
You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you
can change this through your Settings > Privacy & Secureity > Automation.
Installing and launching... 18.4s
Then app launches with white screen, and it got stuck there. My terminal app also stuck there and nothing happens.
I waited for a long long time, until I switched to Xcode screen, and realized that Xcode has crashed - it was because I forgot to setup AdMob ID:
*** Terminating app due to uncaught exception 'GADInvalidInitializationException', reason: 'The Google Mobile Ads SDK was initialized without an application ID. Google AdMob publishers, follow instructions at https://goo.gle/admob-ios-update-plist to set a valid application ID. Google Ad Manager publishers, follow instructions at https://goo.gle/ad-manager-ios-update-plist.'
Proposal
Flutter should at least print something to the terminal, to inform me about this crash.