xcodebuild reports its exit code. Appium logs xcodebuild exited with code '65' and signal 'null' and then xcodebuild failed with code 65. A CI job ends with Process completed with exit code 65. In a terminal, echo $? prints 65 right after xcodebuild stops.
Mobster runs xcodebuild to build the helper app (WebDriverAgent) for your iPhone. When that build fails, Mobster for Mac shows The helper app didn't install and the fix for the error Xcode printed. For an error it doesn’t know, it shows Xcode’s last error: line. Details shows what Xcode said. mobster test --xctest runs your XCTest targets on a simulator. When xcodebuild exits with 65 and leaves a result bundle, Mobster reads each failure from the bundle. With any other code, or no bundle, it reports The tests didn't run.
What 65 means
man xcodebuild says it exits with the codes of sysexits(3). 65 is EX_DATAERR:
Output
xcodebuild exits 65 when the action it ran failed. The summary line near the end of the output identifies the action. Xcode 26.4 uses these summary lines:
For WebDriverAgent on an iPhone, Appium’s provisioning guide says 65 means code signing isn’t set up correctly. Its troubleshooting guide adds a cause on CI machines:
xcodebuild couldn’t read the signing key from the keychain.
Fix
-
Save the whole output, then find the first errors in it:
Start with the first
error:line. Later errors often follow from it. Runset -o pipefailfirst if you want$?to keepxcodebuild’s code through the pipe. -
For tests, keep a result bundle and read its summary:
-
Match the first error to its fix:
- On a CI machine where signing fails with no clearer error, look at the keychain that holds the signing key. Appium’s troubleshooting guide names it as one cause of 65 and suggests a separate keychain for the key.
- Fix the first error and run the same command again.
Check it worked
xcodebuild ends with ** BUILD SUCCEEDED ** or ** TEST SUCCEEDED **, and echo $? prints 0.
Checked 5 Nov 2026 against Mobster 0.4.0. The commands were checked with Xcode 26.4. Back to Troubleshooting.