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

cordova build - xcodebuild issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 4.3.1
    • cordova-ios@4.5.1
    • cordova-ios
    • Mac mini (Late 2014)
      macOS Sierra 10.12.3

    Description

      I'm issuing the command: `cordova build --release --device ios` in order to create a distributable IPA file. I have earlier had success with building an IPA file, but after an upgrade to 4.3.1 from 4.0.1 have I run into the below issue. By the looks of it "Can't find any applicable signing identities for items", but the only thing that have changed is the cordova platform ios version.

      ** EXPORT FAILED **
      
      ERROR building one of the platforms: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,INSIGHT.xcarchive,-exportOptionsPlist,/private/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/exportOptions.plist,-exportPath,/private/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/build/device
      You may not have the required environment or OS to build this project
      
          stderr: 2017-03-17 10:48:17.002 xcodebuild[997:8822] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/qw/b9d8ntgx4nb246fs583508h40000gn/T/INSIGHT_2017-03-17_10-48-16.997.xcdistributionlogs'.
      1.2.840.113635.100.1.61
      1.2.840.113635.100.1.61
      2017-03-17 10:48:18.098 xcodebuild[997:8822] [MT] IDEDistribution: -[IDEDistributionProvisioning _itemToSigningInfoMap:]: Can't find any applicable signing identities for items: (
          "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>"
      )
      Errors={
          "<DVTSigningCertificate: 0x7fa6f5edf0e0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon1', serialNumber='anonanon', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-08 10:09:26 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=10 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'universal' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5de09e0; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
          "<DVTSigningCertificate: 0x7fa6f5ef64c0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon2', serialNumber='21C258FHHJ4437E0EB', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-06 07:40:08 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=2 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No provisioning profiles matching an applicable signing identity were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5ef1990; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
      }
      2017-03-17 10:48:18.099 xcodebuild[997:8822] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fa6f5d55fb0>: Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
          "<DVTSigningCertificate: 0x7fa6f5edf0e0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon1', serialNumber='anonanon', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-08 10:09:26 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=10 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'universal' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5de09e0; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
          "<DVTSigningCertificate: 0x7fa6f5ef64c0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon2', serialNumber='21C258FHHJ4437E0EB', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-06 07:40:08 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=2 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No provisioning profiles matching an applicable signing identity were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5ef1990; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
      }}
      error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)
      
      Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
          "<DVTSigningCertificate: 0x7fa6f5edf0e0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon1', serialNumber='anonanon', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-08 10:09:26 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=10 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No valid 'universal' profiles were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5de09e0; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
          "<DVTSigningCertificate: 0x7fa6f5ef64c0; name='iPhone Distribution: mycompany A/S (UA7BHFBMDD)', hash='anon2', serialNumber='21C258FHHJ4437E0EB', certificateKind='1.2.840.113635.100.6.1.4, issueDate='2017-03-06 07:40:08 +0000''>" =     {
              "<IDEDistributionItem: 0x7fa6f5bf05d0 'com.mycompany.insight.mobile' '<DVTFilePath:0x7fa6f5af1e80:'/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/INSIGHT.xcarchive/Products/Applications/INSIGHT.app'>'>" = "Error Domain=IDECodesignResolverErrorDomain Code=2 \"No matching provisioning profiles found\" UserInfo={NSLocalizedRecoverySuggestion=No provisioning profiles matching an applicable signing identity were found., NSLocalizedDescription=No matching provisioning profiles found, IDECodesignResolverError_ResolutionInputsKey=<IDECodesignResolutionInputs: 0x7fa6f5ef1990; portalTeamID='UA7BHFBMDD', usingTeamBasedSigning='NO', bundleIdentifier='com.mycompany.insight.mobile', targetName='(null)', provisioningProfilePurpose='3', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
          };
      }}
      
      Error: Error code 70 for command: xcodebuild with args: -exportArchive,-archivePath,INSIGHT.xcarchive,-exportOptionsPlist,/private/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/exportOptions.plist,-exportPath,/private/var/lib/jenkins/workspace/mobility-build-distributables/platforms/ios/build/device
      
      Stack:
      Error: Command `cordova build --release --device ios` failed with exit code 1
          at ChildProcess.exithandler (child_process.js:206:12)
          at emitTwo (events.js:106:13)
          at ChildProcess.emit (events.js:191:7)
          at maybeClose (internal/child_process.js:877:16)
          at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
      :mergeX86ReleaseJniLibFolders
      :transformNative_libsWithMergeJniLibsForX86Release
      :processX86ReleaseJavaRes UP-TO-DATE
      :transformResourcesWithMergeJavaResForX86Release
      :packageX86Release
      :zipalignX86Release
      :assembleX86Release
      :assembleRelease
      :cdvBuildRelease
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            madsk Mads K
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: