Same issue using Xcode 14.0 (14A309). This isn't blocking build or even archive within Xcode IDE, but fails xcodebuild archive from the command line.
...
** ARCHIVE FAILED **
The .xcarchive file is produced by xcodebuild but the non-zero error code is breaking my automated build script.
Post
Replies
Boosts
Views
Activity
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.
We are experiencing this as well: region monitoring (both exit and entry events) stopped working after upgrading to iOS 15. 15.0.1 and 15.0.2 updates do not resolve this.
This issue occurs only on some devices / to some users, but not to everyone.
Restarting the device helped some users, but not everyone. Some users are still experiencing this issue even after multiple device restarts.
15.1 release notes mention nothing about region monitoring hence I doubt this is fixed in iOS 15.1.