What this error means
One of the project’s script phases exited with an error. This line is only the summary — the real error is printed earlier in the log.
Why it happens
Xcode ran a Run Script phase, often the one that copies the web build, and that script exited non-zero. This line is the summary; the cause is earlier in the log.
The message tools print
Command PhaseScriptExecution failed with a nonzero exit codeHow to fix it
- Scroll up to the first error before this line and paste that here instead.
- A frequent cause is a missing web build or Node not found — run npm run build and npx cap sync ios before building.
Check a log that shows this
Paste the failing step into the build error explainer. It matches this message, and any others in the same log, in your browser. Nothing is uploaded.
Other iOS build errors
- No signing certificate "iOS Distribution" found
- No profiles for your bundle ID were found
- Xcode: signing requires a development team
- Provisioning profile doesn't support the capability
- Podfile.lock is not in sync with the sandbox
- CocoaPods could not find compatible versions
- Undefined symbols for architecture arm64
