If you get this error running npx expo run:ios
:
Error: xcrun simctl boot 62F02616-B3DF-4F78-9770-74AD88CB7DC2 exited with non-zero code: 60
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=60):
Unable to boot the Simulator.
launchd failed to respond.
Underlying error (domain=com.apple.SimLaunchHostService.RequestError, code=4):
Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding
Error: xcrun simctl boot 62F02616-B3DF-4F78-9770-74AD88CB7DC2 exited with non-zero code: 60
at ChildProcess.completionListener (/path/to/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
at Object.onceWrapper (node:events:628:26)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1098:16)
at Socket.<anonymous> (node:internal/child_process:456:11)
Here is the solution.
The problem in my experience is always due to Signing & Capabilities
.
It should look like this after it's fixed:
- Open the
ios
folder in your Finder. If you usednpx expo prebuild
, this folder was generated for you. - Double click the file ending in
.xcworkspace
. This should open XCode. Make sure your XCode is on the latest version. - In the left panel, click your app.
- Go to the
Signing & Capabilities
tab. - Make sure to sign in, accept terms & conditions, or whatever it requests. You need to have a team set up with a Signing Certificate showing below it.
- Run
npx expo run:ios
again, and go get rich
It should go without say, but this requires being on a Mac. If you don't have a mac, you should use Expo EAS to build the dev client in the cloud.