Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13525

cordova build doesn't pass build flag "-allowProvisioningUpdates" to xcodebuild

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • cordova-ios@4.5.4
    • cordova-ios
    • None
    • cordova 7.1.0
      cordova iOS 4.5.3
      Xcode 9.1.0

    Description

      build.json:

        "ios": {
          "debug": {
            ...
            "buildFlag": [
              "-allowProvisioningUpdates"
            ]
          },
          "release": {
            ...
            "buildFlag": [
              "-allowProvisioningUpdates"
            ]
          }
        },
      

      when running the following command:

      cordova build ios --release --device --buildConfig="build.json" --verbose
      

      cordova build shows that the build flag is detected:

      Adding xcodebuildArg: -allowProvisioningUpdates
      

      BUT it doesn't pass on the build flag to xcodebuild - as shown in the argument list to xcodebuild on an error:

      Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,DemoApp.xcarchive,-exportOptionsPlist,/demo/platforms/ios/exportOptions.plist,-exportPath,/demo/platforms/ios/build/device
      

      Attachments

        Issue Links

          Activity

            People

              surajpindoria Suraj Pindoria
              mobidev3 Michael Schmidt
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: