Bug report
Info.plist variables bound to FlutterFlow Library Values export as null even when both the Library Value and the Info.plist variable dialog show default values.
Repro
- In a FlutterFlow library, create Library Value:
adMobIosAppId = ca-app-pub-3940256099942544~1458002511
- Open iOS
Info.plist settings.
- Add or edit a variable named
ADMOB-IOS-APP-ID.
- Bind that variable value to the Library Value
adMobIosAppId.
- Ensure the Library Value has a default on the Library Values screen.
- Ensure the Info.plist variable dialog also shows the same default value.
- Use it in
Info.plist:
<key>GADApplicationIdentifier</key>
<string>{{ADMOB-IOS-APP-ID}}</string>
- Export/generated code.
Expected
The generated iOS Info.plist should contain:
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>
Actual
The generated iOS Info.plist contained:
<key>GADApplicationIdentifier</key>
<string>null</string>
This causes the Google Mobile Ads iOS SDK to crash on simulator launch with GADApplicationVerifyPublisherInitializedCorrectly / SIGABRT, because the native GADApplicationIdentifier is invalid before Dart runtime values can be read.
Workaround
Set the Info.plist variable ADMOB-IOS-APP-ID directly to the literal string ca-app-pub-3940256099942544~1458002511 instead of binding it to the Library Value. After doing that, export produced the correct generated plist value.
Notes
This suggests native plist variable resolution is not using Library Value defaults during codegen/export, even when the FlutterFlow UI displays a default value in both places.
Bug report
Info.plist variables bound to FlutterFlow Library Values export as
nulleven when both the Library Value and the Info.plist variable dialog show default values.Repro
adMobIosAppId=ca-app-pub-3940256099942544~1458002511Info.plistsettings.ADMOB-IOS-APP-ID.adMobIosAppId.Info.plist:Expected
The generated iOS
Info.plistshould contain:Actual
The generated iOS
Info.plistcontained:This causes the Google Mobile Ads iOS SDK to crash on simulator launch with
GADApplicationVerifyPublisherInitializedCorrectly/SIGABRT, because the nativeGADApplicationIdentifieris invalid before Dart runtime values can be read.Workaround
Set the Info.plist variable
ADMOB-IOS-APP-IDdirectly to the literal stringca-app-pub-3940256099942544~1458002511instead of binding it to the Library Value. After doing that, export produced the correct generated plist value.Notes
This suggests native plist variable resolution is not using Library Value defaults during codegen/export, even when the FlutterFlow UI displays a default value in both places.