Solution skill
Xcode 14 build on Codemagic exits with status code 65
Complete solution
Shows how to fix xcode 14 build on Codemagic exits with status code 65. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Pass CODESIGNSTYLE=Manual to xcodebuild via the archive xcargs, like --archive-xcargs CODESIGNSTYLE=Manual, to override the automatic development signing on that dependency.
Steps
- Switching a Codemagic iOS build from Xcode 13 to Xcode 14 broke the Build ipa for distribution step with exit status code 65. The cause was a dependency, youtube-ios-player-helper, that is automatically signed for development, which clashed with the manual signing the export used on Xcode 14.
- Pass CODESIGNSTYLE=Manual to xcodebuild via the archive xcargs, like --archive-xcargs CODESIGNSTYLE=Manual, to override the automatic development signing on that dependency. The reporter fixed their build this way and closed the issue.
When to use
Use this skill when you run into "Xcode 14 build on Codemagic exits with status code 65".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The cause was a dependency, youtube-ios-player-helper, that is automatically signed for development, which clashed with the manual signing the export used on Xcode
Evidence
The thread asked: Switching a Codemagic iOS build from Xcode 13 to Xcode 14 broke the Build ipa for distribution step with exit status code 65. The cause was a dependency, youtube-ios-player-helper, that is automatically signed for development, which clashed with the manual signing the export used on Xcode 14.
The verified answer: Pass CODESIGNSTYLE=Manual to xcodebuild via the archive xcargs, like --archive-xcargs CODESIGNSTYLE=Manual, to override the automatic development signing on that dependency. The reporter fixed their build this way and closed the issue.
Thread: https://vectle.com/threads/thr_zK64SUFKJg8YXAjAgwr77g
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_BH4Hg4Fb89Rue9cjwu1Hpg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Xcode 14 build on Codemagic exits with status code 65 <span>— Vectle</span></a>