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
whatplan
whatplan2y ago
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.
Neto
Neto2y ago
plus deploying on the appstore is only from apple devices
Trader Launchpad
Trader LaunchpadOP2y ago
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?
whatplan
whatplan2y ago
What OS are you on?
Trader Launchpad
Trader LaunchpadOP2y ago
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
whatplan
whatplan2y ago
The command you are running only works on max with Xcode. Try: npx expo run:ios —device This should give the QR code
Trader Launchpad
Trader LaunchpadOP2y ago
"iOS apps can only be built on macOS devices. Use eas build -p ios to build in the cloud."
whatplan
whatplan2y ago
Hm gimme a sec Ok try npx expo start then press I in the cli
Trader Launchpad
Trader LaunchpadOP2y ago
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
whatplan
whatplan2y ago
Are you in root directory Of your project
Trader Launchpad
Trader LaunchpadOP2y ago
yes
whatplan
whatplan2y ago
Ok run npx expo start then press I then run pnpm dev
Trader Launchpad
Trader LaunchpadOP2y ago
ah, i just cd into expo dir and it worked !
whatplan
whatplan2y ago
Ah! Nice
Trader Launchpad
Trader LaunchpadOP2y ago
thank you. Can you briefly explain why that command works but not the pnpm --filter expo dev reccomended in the docs?
whatplan
whatplan2y ago
I think you still need to run pnpm dev from root dir
Trader Launchpad
Trader LaunchpadOP2y ago
I was, but it looks like in expo/package.json it has "dev": "expo start --ios",
whatplan
whatplan2y ago
^ does that spawn a qr code
Trader Launchpad
Trader LaunchpadOP2y ago
running pnpm --filter expo dev, in root, gives xcode error
whatplan
whatplan2y ago
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
Trader Launchpad
Trader LaunchpadOP2y ago
When i run pnpm dev in root
@acme/expo:dev: Starting Metro Bundler
@acme/expo:dev: CommandError: Input is required, but 'npx expo' is in non-interactive mode.
@acme/expo:dev: Required input:
@acme/expo:dev: > Xcode must be fully installed before you can continue. Continue to the App Store?
@acme/expo:dev:  ELIFECYCLE  Command failed with exit code 1.
@acme/expo:dev: ERROR: command finished with error: command (F:\Users\desit\Builds\create-t3-turbo\apps\expo) pnpm run dev exited (1)
@acme/expo:dev: Starting Metro Bundler
@acme/expo:dev: CommandError: Input is required, but 'npx expo' is in non-interactive mode.
@acme/expo:dev: Required input:
@acme/expo:dev: > Xcode must be fully installed before you can continue. Continue to the App Store?
@acme/expo:dev:  ELIFECYCLE  Command failed with exit code 1.
@acme/expo:dev: ERROR: command finished with error: command (F:\Users\desit\Builds\create-t3-turbo\apps\expo) pnpm run dev exited (1)
whatplan
whatplan2y ago
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
Trader Launchpad
Trader LaunchpadOP2y ago
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
Trader Launchpad
Trader LaunchpadOP2y ago
Trader Launchpad
Trader LaunchpadOP2y ago
running
pnpm --filter expo dev
pnpm --filter expo dev
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
Want results from more Discord servers?
Add your server