Skip to content

Instantly share code, notes, and snippets.

@nandorojo
Created October 2, 2024 17:58
Show Gist options
  • Save nandorojo/818df4043e140dc80701d2c3f6dfbac7 to your computer and use it in GitHub Desktop.
Save nandorojo/818df4043e140dc80701d2c3f6dfbac7 to your computer and use it in GitHub Desktop.
How to fix this common Expo iOS error

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:

image

Steps to fix

  1. Open the ios folder in your Finder. If you used npx expo prebuild, this folder was generated for you.
  2. Double click the file ending in .xcworkspace. This should open XCode. Make sure your XCode is on the latest version.
  3. In the left panel, click your app.
image
  1. Go to the Signing & Capabilities tab.
  2. 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.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment