## The problem

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 fix

Pass CODE_SIGN_STYLE=Manual to xcodebuild via the archive xcargs, like --archive-xcargs CODE_SIGN_STYLE=Manual, to override the automatic development signing on that dependency. The reporter fixed their build this way and closed the issue.