xcodebuild exit code 65:
These four words frighten iOS and macOS developers with any CI system experience. Some of you might even have seen it while using Xcode itself but weren’t aware since Xcode hides those error codes from you.
In order to prevent
xcodebuild from just returning that exit code without any kind of error message, we have to understand what exit code 65 actually refers to.
If you type
man xcodebuild into your terminal emulator of choice and scroll to (almost) the bottom, you’ll see this little paragraph just before the usage examples: