azure-pipelines-tasks: [BUG]: /usr/bin/xcodebuild failed with return code: 65
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
Xcode
Task version
5.231.5
Issue Description
/usr/bin/xcodebuild failed with return code: 65 before build.
But locally build is successful. But locally build is successful. But locally build is successful.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Mac mini Apple M2 14.1.2 (23B92)
Relevant log output
2023-12-26T07:52:14.2445200Z (2 failures)
2023-12-26T07:52:14.6374690Z ##[error]Error: The process '/usr/bin/xcodebuild' failed with exit code 65
2023-12-26T07:52:14.6988300Z ##[section]Finishing: Xcode archive
Full task logs with system.debug enabled
No response
Repro steps
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (2 by maintainers)
thanks for the reply @Valentin-Pommee-Macaw. I believe a co-worker has just identified our issue too - and it is with the escaping of spaces in the signing Identity name… so a little embarrassing here too!
Anyone having also this problem. We had a script that modified the capacitor project project for multiple tenants, but we forgot to replace the applicationIdentifier in the
project.pbxprojfile. Since the applicationIdentifier was wrong we got this error only in our build pipeline. However building on our local machine worked perfectly fine, hence threw quite some time into researching this issue since it was not really that self descriptive what is wrong. Hope this helps anyoneHey @FauxObsolete, this is a bit embarassing, but i actually did make a mistake with my certificate and provisioning profile… resolved it by correctly re-generating new ones using the developer account i used to publish my app with from xcode.
I am still having the same issue… I am not very familiar with apple/xcode development, my project uses Ionic/capacitor… please help! (certificates are all valid, I checked that)
This is my release pipeline:
Fixed. We did have some SwiftUI previews in one of our kit and that can apparently cause issues if Swift 5.9 is not installed on the build machines.
In your case, there does seem to be an error, but it’s only displaying ‘/usr/bin/xcodebuild’ failed with exit code 65 without providing specific error information. Is there a way we can enhance the details of this error? @kirill-ivlev
We’re also seeing the same issue, adding to @eoinnorris that not only the commit it’s exactly the same (including the app and yaml pipeline code), but also the agent OS and image versions are exactly the same
Till the 12th of January worked and now starting from the 19th of January is throwing ##[error]Error: /usr/bin/xcodebuild failed with return code: 65
Also if it can help, yes the error appears at the “start of compilation”, but still after 4/5 minutes the task started to run
P.s. we double checked that certificate and provision profiles are still valid already