Xcode exit code 65 / exit code 66 / raw-xcodebuild-output.log

The solution for these Xcode exit code: 65 issues is to check the raw-xcodebuild-output.log, which is mentioned in the log.

How can I get this raw-xcodebuild-output.log file?

The easiest solution is to make sure that you have the Deploy to Bitrise.io step in your workflow, anywhere after the Xcode step. With the default configuration of the Deploy to Bitrise.io step it will collect all the files from the BITRISE_DEPLOY_DIR and attach the files to the build, and the Xcode steps save this raw-xcodebuild-output.log into that deploy dir.

Where can I find this raw-xcodebuild-output.log file on the build’s page?

  1. open the build’s page on bitrise.io
  2. you can find all the attached files / artifacts in the Apps & Artifacts section, below the build information and above the build log sections.

On the artifacts which support “inline preview” just click the “eye” icon on the right side, and that artifact (e.g. raw-xcodebuild-output.log) will be shown right on the web UI.

Artifacts which don’t support inline preview (e.g. ZIP files) can be simply downloaded by clicking the download button.