Failed to install the Expo client on iOS simulator: xcrun exited with non-zero code: 2

Hi, I am faced with an issue where i am unable to install the expo client app onto my iOS simulator. Please advise on what i can do to resolve this issue. Have tried removing the .expo folder, updating xcode, erasing all content and setting in the iOS simulator.

Error message
Error running xcrun simctl install - /Users/Bell/.expo/ios-simulator-app-cache/Exponent-2.17.2.tar.app: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.

xcrun exited with non-zero code: 2
Error: xcrun exited with non-zero code: 2
at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
at Object.onceWrapper (events.js:421:26)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1051:16)
at Socket. (internal/child_process.js:442:11)
at Socket.emit (events.js:314:20)
at Pipe. (net.js:673:12)

at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
at xcrunAsync (/@expo/xdl@58.0.9/src/SimControl.ts:323:18)
at xcrunWithLogging (/@expo/xdl@58.0.9/src/SimControl.ts:336:18)
at simctlAsync (/@expo/xdl@58.0.9/src/SimControl.ts:262:10)
at Object.installAsync (/@expo/xdl@58.0.9/src/SimControl.ts:165:10)
at installExpoOnSimulatorAsync (/@expo/xdl@58.0.9/src/Simulator.ts:468:35)
at Object.upgradeExpoAsync (/@expo/xdl@58.0.9/src/Simulator.ts:507:25)
at /usr/local/lib/node_modules/expo-cli/src/commands/client/index.ts:365:11
at Command. (/usr/local/lib/node_modules/expo-cli/src/exp.ts:302:7)

Steps to reproduce the above mentioned error message
in the project directory
“expo start”
“i”

Upon running “expo diagnostics”
Expo CLI 3.27.10 environment info:
System:
OS: macOS 10.15.7
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.5.0 - /usr/local/bin/node
npm: 6.14.6 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 12.0.1/12A7300 - /usr/bin/xcodebuild
npmPackages:
expo: ~38.0.8 => 38.0.8
react: ~16.11.0 => 16.11.0
react-dom: ~16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
react-navigation: ^4.4.0 => 4.4.0
npmGlobalPackages:
expo-cli: 3.27.10
Expo Workflow: managed

Upon running “xcrun simctl install booted /Users/user+name/.expo/ios-simulator-app-cache/Exponent-2.16.0.tar.app > output.txt”
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.

Hey @isabellaskc,

Can you try upgrading to expo-cli version 3.27.12 and let me know if you still encounter this issue. Also, did this issue occur after upgrading Xcode or after upgrading expo-cli?

Cheers,
Adam

Hi, I have tried upgrading the expo-cli to version 3.27.12 however, i am still getting the same error. I am unable to provide a definite answer as I have only started recently.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.