Xcode 14 build on Codemagic exits with status code 65

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.

Source: https://github.com/codemagic-ci-cd/codemagic-docs/issues/962