I’m trying to support running our app in the Expo app on the iOS simulator even though our app is detached, as we’re only detaching for a few specific features and 99% of the development cycle doesn’t require detaching.
If I run exp start --ios
after detaching, exp tries to launch my app using the URI scheme specified in app.json. This means it either tries to launch by detached debug build, or if that’s not installed, the launching fails entirely. Additionally, if the Expo app is not installed on the simulator, it is not automatically installed. If the Expo app is already installed, and I open the Expo app manually, I am able to run the app.
I did find that if I set detached=false in app.json, exp would at least try to install the Expo app if it wasn’t already installed, but it still used the URI scheme to launch, and thus would not launch in Expo. If I removed the scheme entirely from app.json, only then would it work just as it did prior to detaching.
I guess I could create an alternate app.json, but figured I’d check around for a better way first. Thank you!