cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Schauerte (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-13457) cordova build ios --release --device fails for packageType 'app-store'
Date Tue, 17 Oct 2017 19:26:00 GMT
Felix Schauerte created CB-13457:
------------------------------------

             Summary: cordova build ios --release --device fails for packageType 'app-store'
                 Key: CB-13457
                 URL: https://issues.apache.org/jira/browse/CB-13457
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-ios
         Environment: Mac OS  Sierra (10.12.6)
Xcode 9
Cordova CLI 7.1.0
cordova-ios:
    cordova-ios@4.5.2
    or https://github.com/jrryhrtn/cordova-ios.git
    or https://github.com/apache/cordova-ios.git
            Reporter: Felix Schauerte
            Assignee: Suraj Pindoria


build.json:

{{"release": {
      "codeSignIdentity": "iPhone Distribution",
      "developmentTeam": "OUR-TEAM-ID",
      "packageType": "app-store",
      "provisioningProfile": "VALID NAME OF A PROV-PROFILE",
      "buildFlag": [
        "EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
        "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
        "LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
      ]
    }
}}

When using  packageType=enterprise and a corresponding provisioningProfile the release is
finished successfully as expected, but with packageType=app-store we receive the following
messages:

{{ [cordova] Entitlements:
  [cordova]
  [cordova] {
  [cordova]     "application-identifier" = "OUR-TEAM-ID.BUNDLE-ID";
  [cordova]     "beta-reports-active" = 1;
  [cordova]     "com.apple.developer.team-identifier" = OUR-TEAM-ID;
  [cordova]     "get-task-allow" = 0;
  [cordova] }
  [cordova]
  [cordova]
  [cordova]     builtin-productPackagingUtility -entitlements -format xml -o /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/IntermediateBuildFilesPath/FINSTRAL.build/Release-iphoneos/FINSTRAL.build/FINSTRAL.app.xcent
  [cordova]
  [cordova] CodeSign /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/InstallationBuildProductsLocation/Applications/FINSTRAL.app
  [cordova]     cd /Users/schauerte/tatakoto/dev/schauerte/cleverdox/build/fis.productive/local/ios/platforms/ios
  [cordova]     export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
  [cordova]     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/schauerte/shared/ant-1.9.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin"
  [cordova]
  [cordova] Signing Identity:     "iPhone Distribution: FINSTRAL SPA (OUR-TEAM-ID)"
  [cordova] Provisioning Profile: "FINSTRAL (AppStore)"
  [cordova]                       (PROV-PROFILE-UID)
  [cordova]
  [cordova]     /usr/bin/codesign --force --sign 70F84903046CDD6B734A987E4CB044FE5E18C5EA
--entitlements /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/IntermediateBuildFilesPath/FINSTRAL.build/Release-iphoneos/FINSTRAL.build/FINSTRAL.app.xcent
--timestamp=none /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/InstallationBuildProductsLocation/Applications/FINSTRAL.app
  [cordova] /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/InstallationBuildProductsLocation/Applications/FINSTRAL.app:
unknown error -1=ffffffffffffffff
  [cordova] Command /usr/bin/codesign failed with exit code 1
  [cordova]
  [cordova] ** ARCHIVE FAILED **
  [cordova]
  [cordova]
  [cordova] The following build commands failed:
  [cordova]     CodeSign /Users/schauerte/Library/Developer/Xcode/DerivedData/FINSTRAL-bsnohhydgksblzfcqjeuvibucnhv/Build/Intermediates.noindex/ArchiveIntermediates/FINSTRAL/InstallationBuildProductsLocation/Applications/FINSTRAL.app
  [cordova] (1 failure)
  [cordova] Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/schauerte/tatakoto/dev/schauerte/cleverdox/build/fis.productive/local/ios/platforms/ios/cordova/build-release.xcconfig,-workspace,FINSTRAL.xcworkspace,-scheme,FINSTRAL,-configuration,Release,-destination,generic/platform=iOS,-archivePath,FINSTRAL.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/schauerte/tatakoto/dev/schauerte/cleverdox/build/fis.productive/local/ios/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/schauerte/tatakoto/dev/schauerte/cleverdox/build/fis.productive/local/ios/platforms/ios/build/sharedpch,EMBEDDED_CONTENT_CONTAINS_SWIFT
= YES,ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO,LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"}}

This happens during Archiving and before Exporting.
As the messages say, the PROV-PROFILE etc. are resolved correctly. All certificates are locally
available in the login keychain. All profiles are downloaded by xcode 9.

there are no outdated/old certificates or profiles on the mac system. we deleted even old
private keys.

We tried the same setup with different TEAM-IDS (and their corresponding PROV-PROFILES). The
error always occurrs.

We unlock the keychain immediatly before we run the release command: 
{{security unlock-keychain ~/Library/Keychains/login.keychain-db}}

Without the bugfix provided by https://github.com/jrryhrtn/cordova-ios.git (creation of exportOptions.plist)
the release command failed even for packageType=enterprise. But with the bugfix applied tit
still fails for packageType=app-store.

After the release command fails I can open the xcode project in xcode 9 an export the app
without any problems. I don't have to manually modify any setting in xcode.

I tried a lot of coinfiguration variants, cleaned up keychain on the mac computer, installed
various patches, and so on (for two days). Finally I have to state that I can't get it running.
So I ended up here with posting an issue ticket.





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message