15 Replies
I am assuming this is the expo + next monorepo?
If so follow the expo documentation: https://docs.expo.dev/get-started/set-up-your-environment/?platform=ios&device=simulated
Expo Documentation
Set up your environment
Learn how to set up your development environment to start building with Expo.
yeah I did that and it runs and I can use the QR code that shows up after I run
npm run dev
to run the app on my iphone
native-app:dev: Your project may not work correctly until you install the correct versions of the packages.
native-app:dev: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
native-app:dev: █ ▄▄▄▄▄ █▄▄▄ ▀▄▀█▄█ ▄▄▄▄▄ █
native-app:dev: █ █ █ ██▄▀ █ ▀█▄█ █ █ █
native-app:dev: █ █▄▄▄█ ██▀▄ ▄▄██▀█ █▄▄▄█ █
native-app:dev: █▄▄▄▄▄▄▄█ ▀▄█ ▀ ▀ █▄▄▄▄▄▄▄█
native-app:dev: █▄▄▀▄ █▄█▀▄▀█▄▀█▀ █▄█▀█▀▀▄█
native-app:dev: ██▄▀▄█▄▄ ▄██▄▄▄ █▀███▄▀▀ █
native-app:dev: █▀█▀█▄█▄ ▄ █▀█▄ █ ▄▀▀█▀ ██
native-app:dev: █ ▄▀ █▄█▄▀▀█▀▄▀ ▄▀ ██▄▀ █
native-app:dev: █▄█▄█▄█▄█ █▀ ▄▄ █ ▄▄▄ ▄▀▄█
native-app:dev: █ ▄▄▄▄▄ ██ █▀▄ █ █▄█ ███ █
native-app:dev: █ █ █ █ █ ▄ ▀█▄ ▄ ▄ █▀▀█
native-app:dev: █ █▄▄▄█ █▀ ▄ ▀█▄ ▄█▀▀▄█ █
native-app:dev: █▄▄▄▄▄▄▄█▄▄▄▄██▄▄▄▄█▄▄███▄█
native-app:dev:
native-app:dev: › Metro waiting on exp://192.168.6.228:8081
native-app:dev: › Scan the QR code above with Expo Go (Android) or the Camera app (iOS)
native-app:dev:
native-app:dev: › Using Expo Go
native-app:dev: › Press s │ switch to development build
native-app:dev:
native-app:dev: › Press a │ open Android
native-app:dev: › Press i │ open iOS simulator
native-app:dev: › Press w │ open web
native-app:dev:
native-app:dev: › Press j │ open debugger
native-app:dev: › Press r │ reload app
native-app:dev: › Press m │ toggle menu
native-app:dev: › Press o │ open project code in your editor
native-app:dev:
native-app:dev: › Press ? │ show all commands
but cant figure out how to open the app on the iphone simulatorHave you installed xcode and relevant command line tools per the instrutions in the link?
yes
but pressing i does nothing
Absolutely nothing? No errors?
native-app:dev:
native-app:dev: › Using Expo Go
native-app:dev: › Press s │ switch to development build
native-app:dev:
native-app:dev: › Press a │ open Android
native-app:dev: › Press i │ open iOS simulator
native-app:dev: › Press w │ open web
native-app:dev:
native-app:dev: › Press j │ open debugger
native-app:dev: › Press r │ reload app
native-app:dev: › Press m │ toggle menu
native-app:dev: › Press o │ open project code in your editor
native-app:dev:
native-app:dev: › Press ? │ show all commands
native-app:dev:
native-app:dev: Logs for your project will appear below. Press Ctrl+C to exit.
web-app:dev: ✓ Ready in 1683ms
i
nothing just types the letter iI am no expo expert only done a bit of dabbling. I'd ask the expo community: https://discord.gg/7x5QuxbU
I'd be surprisied if this is a Convex specific issue.
I don't think it is
I just dont know how the turbo works
if you've come as far as you have. I don't think this has anything with turbo
I was having trouble getting the simulator working last week. So I just stuck to working on my phone for a while longer.
does pressing i open the simulator for you
No but I got some confusing error about not finding a simulator
Oh i got it working!
Press "Shift + i" instead of i
then pick a simulator to launch
https://github.com/expo/expo-cli/issues/2413#issuecomment-969098866
I got it working by the script in in package.json, than restarting and than deleting cache from xcode
https://forums.developer.apple.com/forums/thread/718750
its unresponsive when I try hitting i or shift-i but I am using npm, never got pnpm to work
Ok great. Glad you got it figured out. XCode and that whole ecosystem is it's own universe of complexity.
I get an error when I try the android app
native-app:android: Logs for your project will appear below. Press Ctrl+C to exit.
Android Bundling failed 1083ms (index.tsx)
Unable to resolve "use-sync-external-store/shim/index.js" from "../../node_modules/swr/infinite/dist/index.js"
Android Bundling failed 703ms (index.tsx)
Unable to resolve "use-sync-external-store/shim/index.js" from "../../node_modules/swr/infinite/dist/index.js"
I haven't tried the Android emulator in a long time. I might not be of much help here.