Skip to content

allow passing build flags to xcodebuild command for building Apple apps. #121702

@russellwheatley

Description

@russellwheatley

Use case

Hey there 👋 , I'm a maintainer at FlutterFire. We're looking to pass a build flag to the xcodebuild command ran when building a macOS app. We have an keychain issue on our CI that could possibly be resolved by passing in the --allowProvisioningUpdates build flag which you can read in the logs for the failed CI run here.

I found that it is possible to pass a key/value to the build here. The problem is, we would like to pass a build flag which isn't possible with the current setup as implemented here.

Proposal

I propose updating this implementation. It could, perhaps, look for an environment variable with the signature: FLUTTER_XCODE_FLAG_*.

For illustration, I could export FLUTTER_XCODE_FLAG_provisioning_profile=--allowProvisioningUpdates as an environment variable. The updated implementation would find keys that match on FLUTTER_XCODE_FLAG_ and take whatever value it has and pass it to xcodebuild as a flag rather than a key/value pair.

Hopefully, that makes sense. Let me know if you have any questions! Thanks 🙏.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: buildBuilding flutter applications with the toolc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterplatform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions