Post

Replies

Boosts

Views

Activity

Reply to Archive with xcodebuild / Xcode 14 and manual signing not possible
I'm experiencing a similar issue since upgrading to Xcode 14.0 Build version 14A309. Building from the command line with xcodebuild works, but xcodebuild archive always fails. This succeeds: xcodebuild -workspace ./Redacted.xcworkspace -scheme Redacted -configuration Release -destination generic/platform=iOS -allowProvisioningUpdates This fails: xcodebuild -workspace ./Redacted.xcworkspace -scheme Redacted -configuration Release -destination generic/platform=iOS -archivePath "/Users/username/Library/Developer/Xcode/Archives/2022-09-26/Redacted_2022-09-26_14.01.09.xcarchive" -allowProvisioningUpdates archive There are no errors emitted that can explain the ** ARCHIVE FAILED ** message. Specifically, there is no error reported by CodeSign. These are the last few lines of the build log: CodeSign /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios Signing Identity: "Apple Development: Redacted (8C3XJJ4HV9)" Provisioning Profile: "iOS Team Provisioning Profile: com.Redacted.Redacted" (Redacted) /usr/bin/codesign --force --sign Redacted --entitlements /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/IntermediateBuildFilesPath/Redacted.build/Release-iphoneos/Redacted.build/Redacted.app.xcent --generate-entitlement-der /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app RegisterExecutionPolicyException /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios builtin-RegisterExecutionPolicyException /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app Validate /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios builtin-validationUtility /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app Touch /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios /usr/bin/touch -c /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app ** ARCHIVE FAILED ** Is this a known issue in Xcode 14? Note: Archiving from Xcode IDE works just fine, including export/signing.
Sep ’22
Reply to Archive with xcodebuild / Xcode 14 and manual signing not possible
I'm experiencing a similar issue since upgrading to Xcode 14.0 Build version 14A309. Building from the command line with xcodebuild works, but xcodebuild archive always fails. This succeeds: xcodebuild -workspace ./Redacted.xcworkspace -scheme Redacted -configuration Release -destination generic/platform=iOS -allowProvisioningUpdates This fails: xcodebuild -workspace ./Redacted.xcworkspace -scheme Redacted -configuration Release -destination generic/platform=iOS -archivePath "/Users/username/Library/Developer/Xcode/Archives/2022-09-26/Redacted_2022-09-26_14.01.09.xcarchive" -allowProvisioningUpdates archive There are no errors emitted that can explain the ** ARCHIVE FAILED ** message. Specifically, there is no error reported by CodeSign. These are the last few lines of the build log: CodeSign /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios Signing Identity: "Apple Development: Redacted (8C3XJJ4HV9)" Provisioning Profile: "iOS Team Provisioning Profile: com.Redacted.Redacted" (Redacted) /usr/bin/codesign --force --sign Redacted --entitlements /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/IntermediateBuildFilesPath/Redacted.build/Release-iphoneos/Redacted.build/Redacted.app.xcent --generate-entitlement-der /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app RegisterExecutionPolicyException /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios builtin-RegisterExecutionPolicyException /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app Validate /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios builtin-validationUtility /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app Touch /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app (in target 'Redacted' from project 'Redacted') cd /Users/username/dev/Redacted-ios /usr/bin/touch -c /Users/username/Library/Developer/Xcode/DerivedData/Redacted-dbsslheqkuqpbggxvwaiakaabivh/Build/Intermediates.noindex/ArchiveIntermediates/Redacted/InstallationBuildProductsLocation/Applications/Redacted.app ** ARCHIVE FAILED ** Is this a known issue in Xcode 14? Note: Archiving from Xcode IDE works just fine, including export/signing.
Replies
Boosts
Views
Activity
Sep ’22