Hey everyone,
I'm encountering an issue with my latest Xcode Cloud build. It consistently fails with an exit code of 65. I've checked the build logs and it seems to be related to a code signing or provisioning profile issue, but I'm not entirely sure how to pinpoint it.
Here's a snippet from the logs:
[10:35:15]: $ set -o pipefail
[10:35:15]: $ xcodebuild -workspace MyProject.xcworkspace -scheme MyScheme -sdk iphoneos -configuration Release archive -archivePath $PWD/build/MyProject.xcarchive
[10:37:45]: ▸ ** ARCHIVE FAILED **
[10:37:45]: ▸ Command line invocation:
[10:37:45]: ▸ /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace MyProject.xcworkspace -scheme MyScheme -sdk iphoneos -configuration Release archive -archivePath /Volumes/workspace/build/MyProject.xcarchive
[10:37:45]: ▸
[10:37:45]: ▸ User defaults:
[10:37:45]: ▸ IDEPackageSupportUseBuiltinSCM = YES
[10:37:45]: ▸
[10:37:45]: ▸ It is recommended that you use Xcode 14.2 or later.
[10:37:45]: ▸ ** ARCHIVE FAILED **
[10:37:45]: ▸ xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
[10:37:45]: ▸
[10:37:45]: [10:37:45]: Exit code: 65
[10:37:45]:
[10:37:45]: Lane: ios_build
[10:37:45]:
[10:37:45]: ERROR [2023-10-27 10:37:45]: Fastlane error:
[10:37:45]: [!] Xcode did not generate a recognizable build.
[10:37:45]: Ensure that you are using a version of Xcode that is supported by the SDK you are using.
[10:37:45]: If you are using a beta version of Xcode, please ensure that you are using a beta version of fastlane.
[10:37:45]: For more information on how to resolve this, check out the troubleshooting guide: https://docs.fastlane.tools/examples/ios/codesigning/
I've already tried regenerating the provisioning profile and certificates on the Apple Developer portal, but that didn't resolve the issue. Has anyone else faced this with Xcode Cloud and Exit Code 65? Any advice on what to check next would be greatly appreciated!
Thanks!