I have stuggled with this for a few days now. I can use react-native-cli with no issues, but if I create a new project with the expo-cli, I cannot get the new app running in an emulator/simulator.
I get errors about the build being detached. For example
# After npm start I press 'i' to run in the iPad simulator
[14:43:24] Trying to open the project in iOS simulator...
[14:43:25] Opening exp37658ad2fef24150b0b5731e57462079://127.0.0.1:19000 in iOS simulator
[14:43:25] Error running `xcrun simctl openurl booted exp37658ad2fef24150b0b5731e57462079://127.0.0.1:19000`: An error was encountered processing the command (domain=NSOSStatusErrorDomain, code=-10814):
The operation couldn’t be completed. (OSStatus error -10814.)
[14:43:25] Error running app. Have you installed the app already using Xcode? Since you are detached you must build manually. Error: Process exited with non-zero code: 194
This app and the the app I have working on react-native-cli have different names and working directories. I have Erased all content and settings off of my simulator.
Note: I tried expo first before giving up and trying react-native-cli. Seeing as I had things working I thought to try expo again, but I am running in to this issue again.
I feel like it is something that I have done and not an issue the cli itself.
My apologies. I thought your project was a standard one and for some reason it was throwing an error saying it was detached. Once ejected (aka detached), you’ll need to open your workspace via Xcode and start running the simulator via Xcode rather than expo-cli.
Hey @bouncey and to others whom this may apply to,
After looking back at your app.json, it looks like you may have choosen the advanced workflow which creates an ejected project. Hence why your app.json has isDetached: true and the detach.iosExpoViewUrl and detach.androidExpoViewUrl properties. Can you create a new project and make sure you select the managed workflow?