T3 Turbo : Do I have to run on mac to use expo go with iphone?
When using t3 turbo and expo, do I have to be running on a mac to use the expo go instant developer experience? I believe I do, but expo documentation is a little confusing.
25 Replies
If you want to run the iOS sim on your computer, you need Xcode which can only be installed on Mac. But you can download the expo app on your physical iPhone and have a live dev environment there.
plus deploying on the appstore is only from apple devices
When i download create-t3-turbo and run pnpm --filter expo dev, i get an xcode error. Do i need to modify the dev command?
What OS are you on?
Windows
I have a windows desktop and mac laptop. I can get it working on mac pretty simply, but I am trying to develop on my larger windows desktop
basically how do i get it to spit out the qr code on windows terminal to open in ios expo go
The command you are running only works on max with Xcode.
Try: npx expo run:ios —device
This should give the QR code
"iOS apps can only be built on macOS devices. Use eas build -p ios to build in the cloud."
Hm gimme a sec
Ok try npx expo start then press I in the cli
ok i get a QR code, but an error
"Unable to resolve "../../App" from "node_modules\expo\AppEntry.js""
this is in a fresh cloned version of create-t3-turbo
Are you in root directory
Of your project
yes
Ok run npx expo start then press I then run pnpm dev
ah, i just cd into expo dir and it worked
!
Ah!
Nice
thank you. Can you briefly explain why that command works but not the pnpm --filter expo dev reccomended in the docs?
I think you still need to run pnpm dev from root dir
I was, but it looks like in expo/package.json it has "dev": "expo start --ios",
^ does that spawn a qr code
running pnpm --filter expo dev, in root, gives xcode error
Yea just “pnpm dev” from root
Because starting expo doesn’t start the other packages
The expo instance should not connect to your db right now if you only ran the dev script from expo app dir
When i run pnpm dev in root
Try removing the —ios
I think that forces it to x code
Never mind I think that is wrong
The repo is obviously designed for mac, maybe someone who is more familiar with it can help, I’m sorry I don’t know more
I’ll take another look when I get home
The way i solved this is to remove --ios from the expo package.json dev command so it JUST launches base expo and does not try to force the IOS simulator. From there, you can use the CLI to launch IOS, ANDROID, or just scan the QR with expo go on any device.
IMO this should be changed in the main repo as this is supposed to be a universal solution, but is default set assuming your on a MAC device. Making this change, and changes to the documentation will assist users in the future
running as per the documentation (https://github.com/t3-oss/create-t3-turbo#:~:text=pnpm%20%2D%2Dfilter%20expo%20dev)
does not open up the scannable QR code on fresh clones on either windows or mac.
On Windows I get an Xcode error (trying to force open in IOS simulator), on Mac it just opens the Simulator. If you want to use Expo go on either windows or mac, you need to just use "expo start" as the dev command