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

XCode 9 fails export when using explicit provisioning profile and/or certificate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • cordova-ios
    • None
      • XCode 9

    Description

      When building with explicit signing the build fails because the signing information is missing from the exportOptions.plist.

      A fix for this could be to update cordova-ios/bin/templates/scripts/cordova/lib/build.js with the following:
      add:

      var projectFile = require('./projectFile');

      on line 29
      add:

      var self = this;

      on line 58
      add:

              var project = projectFile.parse(self.locations);
              var pkgName = project.getPackageName();
      
              if (pkgName && buildOpts.provisioningProfile) {
                  exportOptions.provisioningProfiles = {[pkgName]: buildOpts.provisioningProfile};
                  exportOptions.signingStyle = 'manual';
              }
      
              if (buildOpts.codeSignIdentity) {
                  exportOptions.signingCertificate = buildOpts.codeSignIdentity;
              }
      

      on line 141

      Line numbers refer to commit 7ab03155c2e44c94a0a284f32192ad6f264a6c0e

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              markvb Mark van Beek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: