Skip to content

Flutter build IPA with --export-options-plist not working #113977

@gkustas

Description

@gkustas

I have a white-label app that needs to be built from the command line. I am using "flutter build IPA" with an export options list to specify code signing specifics. It appears that the values are not getting passed to xcodebuild and the build fails because it doesn't find the provisioning profile.

error: No profiles for 'com.foundationtennis.app' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.foundationtennis.app'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')

NOTE: if I open the XCode workspace and manually set the signing capabilities, flutter build IP works fine.

Steps to Reproduce

  1. Create ExportOptions.plist file like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>generateAppStoreInformation</key>
    <false/>
    <key>method</key>
    <string>app-store</string>
    <key>provisioningProfiles</key>
    <dict>
      <key>com.foundationtennis.app</key>
      <string>a38ecde3-53bc-4910-8068-604b01665598</string>
    </dict>
    <key>signingCertificate</key>
    <string>Apple Distribution</string>
    <key>signingStyle</key>
    <string>manual</string>
    <key>stripSwiftSymbols</key>
    <true/>
    <key>teamID</key>
    <string>844NRE74R7</string>
    <key>uploadBitcode</key>
    <false/>
    <key>uploadSymbols</key>
    <true/>
  </dict>
</plist>
  1. Run flutter build IPA like so:
flutter build ios --release --verbose --export-options-plist=/Users/george/Develop/flutter_builds/foundation_tennis_v4/ios/ExportOptions.plist
  1. See the output from the previous command below

Logs

see attached for verbose output

flutterbuildipa.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: buildBuilding flutter applications with the toola: releaseChallenges faced when attempting to productionize an appplatform-iosiOS applications 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