[
https://issues.apache.org/jira/browse/CB-13457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16210704#comment-16210704
]
Felix Schauerte commented on CB-13457:
--------------------------------------
I'm not able to reproduce the bug anymore.
I created a new APP-ID and PROV-PROFILE for app-store distribution on
developer.apple.com, Than I created a new cordova project with a corresponding
bundle id and set the appropriate vaules in build.json. The command line
archive succeeded on the first run without specifying "--buildConfig
build.json".
This may help you to track down the issue:
The only thing that was reused in my last try is the iOS Distribution
Certificate from our apple devolper account.
Just before the error occured the first time (3 days ago), the iOS Distribution
Certificate gave us a expiration warning. We created new certificates via
xcode, updated the PROV-PROFILES, downloaded everything via xcode and even
deleted old key and certs (via keychain) and old profiles via file system.
xcode said, all is fine, but the command line builds failed as mentioned above.
Looks like xcode 'repaired' something on the first successfull archiving.
Now everything works as expected, but it took us nearly threee days to get it
running again. It's always a hussle in our cordova prjects whenever the apple
certificates expire or a new xcode/ios version is published. But this time I
had the worst experience ever.
Thank you for your time and brain. I hope you will be able to eliminate the
root cause of this issue. At least better error messages would help a lot. The
error message from apple (unknown error -1=ffffffffffffffff) doesn't help a
lot. And i know that you won't be able to get better error messages from the
apple tool. But may be you could perform some validations to provide more info
to the developer whenever signing or archiving fails...
Cheers,
Felix
> 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: {code}
> Mac OS Sierra (10.12.6)
> Xcode 9
> Cordova CLI 7.1.0
> cordova-ios:
> [email protected]
> or https://github.com/jrryhrtn/cordova-ios.git
> or https://github.com/apache/cordova-ios.git
> {code}
> Reporter: Felix Schauerte
> Assignee: Suraj Pindoria
>
> build.json:
> {code}
> "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\""
> ]
> }
> {code}
> 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:
> {code}
> [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"
> {code}
> 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:
> {code}security unlock-keychain ~/Library/Keychains/login.keychain-db{code}
> 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 it 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: [email protected]
For additional commands, e-mail: [email protected]