I have just created a new Signing Certificate because the old is about to expire. With my Certificate the provisioning profile and .p12 works fine on Volt. But the new one I create I get the “unable to build chain to self-signed root for signer” warning in the build log, and the build fails.
The only difference between two is an Issuer Certificate.
The one that does not work has OU=G3 in subject with signature algorithm – SHA-256
The one that works (old one) has OU=Apple Worldwide Developer Relations and with signature algorithm – SHA-1
There are two intermediate certification authority certs in Apple, and I guess they are both signed with different CA.
The problem is that when we create new cert in apple developer portal it is singed by newest CA that has OU=G3 in subject. Is there a possibility that volt builder does not have that new cert in their keychain?
From the build log:
Signing Identity: "iPhone Distribution: Acme" Provisioning Profile: "AcmeAcme" (xxxxxxxxxx) /usr/bin/codesign --force --sign AcmeAcme --entitlements /Users/voltbuilder/Library/Developer/Xcode/DerivedData/Test_Acme_SSO-gvjlzkwyjmwespcevmovipltxkde/Build/Intermediates.noindex/ArchiveIntermediates/Test\ Acme\ HR\ SSO/IntermediateBuildFilesPath/Test\ Acmex\ HR\ SSO.build/Debug-iphoneos/Test\ Acme\ HR\ SSO.build/Test\ Acme\ HR\ SSO.app.xcent /Users/voltbuilder/Library/Developer/Xcode/DerivedData/Test_Acme_HR_SSO-gvjlzkwyjmwespcevmovipltxkde/Build/Intermediates.noindex/ArchiveIntermediates/Test\ Acme\ Acme\ SSO/InstallationBuildProductsLocation/Applications/Test\ Acme\ HR\ SSO.app Warning: unable to build chain to self-signed root for signer "iPhone Distribution: Acme " /Users/voltbuilder/Library/Developer/Xcode/DerivedData/Test_Acme_HR_SSO-gvjlzkwyjmwespcevmovipltxkde/Build/Intermediates.noindex/ArchiveIntermediates/Test Acme HR SSO/InstallationBuildProductsLocation/Applications/Test Acme HR SSO.app: errSecInternalComponent Command CodeSign failed with a nonzero exit code ** ARCHIVE FAILED ** The following build commands failed: CodeSign /Users/voltbuilder/Library/Developer/Xcode/DerivedData/Test_Acme_HR_SSO-gvjlzkwyjmwespcevmovipltxkde/Build/Intermediates.noindex/ArchiveIntermediates/Test\ Acme\ HR\ SSO/InstallationBuildProductsLocation/Applications/Test\ Acme\ HR\ SSO.app (1 failure) Command finished with error code 65: xcodebuild -workspace,Test Acme HR SSO.xcworkspace,-scheme,Test Acme HR SSO,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Test Acme HR SSO.xcarchive,archive,CONFIGURATION_BUILD_DIR=/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/platforms/ios/build/sharedpch,EMBEDDED_CONTENT_CONTAINS_SWIFT = YES,ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO,LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks" xcodebuild: Command failed with exit code 65 Error: xcodebuild: Command failed with exit code 65 at ChildProcess.whenDone (/node_modules/cordova-common/src/superspawn.js:136:25) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) The following build commands failed: CodeSign /Users/voltbuilder/Library/Developer/Xcode/DerivedData/Test_Acme_HR_SSO-gvjlzkwyjmwespcevmovipltxkde/Build/Intermediates.noindex/ArchiveIntermediates/Test\ Acme\ HR\ SSO/InstallationBuildProductsLocation/Applications/Test\ Acme\ HR\ SSO.app (1 failure) reset_keychain Output: Build 9df85d25-632d-4bd8-bd38-e7e828693287 failed