Issue with ci_post_clone.sh
($(FLUTTER_BUILD_NAME)
in Info.plist
not being expanded)
#10807
Labels
from.page-issue
Reported in a reader-filed concern
Page URL
https://docs.flutter.dev/deployment/cd
Describe the problem
I added
ci_post_clone.sh
(the script by @Diizzayy) to my Flutter project, and set up the Xcode cloud deployment workflow as shown in the Flutter docs at the above URL.I get the following CI build errors:
However
flutter run
works locally. So there seems to be some step missing from theci_post_clone.sh
script (something that is run byflutter run
but not by the script, to replace these variables with the actual correct values before the Xcode Cloud build is started).After a local run of
flutter run
, myGenerated.xcconfig
(which is not checked into git) does include the following (these numbers are correctly picked up frompubspec.yaml
when I runflutter run
):Runner/Info.plist
andFlutter/AppFrameworkInfo.plist
both contain:My
Runner.xcodeproj/project.pbxproj
file contains the following for each target:@jmagman asked me in #7259 to file this separate bug report, and include:
Q: when you
flutter run
locally can you see the right values in the app's Info.plist?A: No,
Info.plist
doesn't change.Q: are you using flavors?
A: I don't even know what flavors are, so probably no.
Expected fix
As far as I can tell, Xcode Cloud is simply not generating
Generated.xcconfig
, so maybe it is not callingflutter build
, but rather is relying only on Xcode to build the ipa?I tried adding this to the end of
ci_post_clone.sh
, but it does not seem to have fixed the problem:The text was updated successfully, but these errors were encountered: