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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: cordova-ios@4.5.4
    • Component/s: cordova-ios
    • Labels:
      None
    • Environment:

      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

              • Assignee:
                surajpindoria Suraj Pindoria
                Reporter:
                mobidev3 Michael Schmidt
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: