nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.35k stars 169 forks source link

Starter template doesn't start in iOS #433

Closed mirkokiefer closed 4 months ago

mirkokiefer commented 9 months ago

I tried the tailwind template and launched yarn native and then opened the simulator with i.

I get this error:

CommandError: No development build (com.solito.nativewind) for this project is installed. Please make and install a development build on the device first.
Learn more: https://docs.expo.dev/development/build/
derek-primumco commented 9 months ago

yarn native is no longer the right command; try yarn ios (yarn expo run:ios)

nandorojo commented 9 months ago

yarn native should work, you just need to create a dev client first. or you can remove —dev-client from the native command to use expo go, but i recommend the dev client instead by running yarn ios first

mirkokiefer commented 9 months ago

I figured I had to go into cd apps/expo to be able to run yarn ios. I was using the yarn native command in the root folder as suggested by the CLI tool.

nandorojo commented 8 months ago

Yeah I should make this more clear now that SDK 49 is in the starters. I'm thinking we remove --dev-client from the yarn native script in the root.

SVronskiy commented 7 months ago

Try to change root package.json to


  "scripts": {
    "go": "cd apps/expo && npx expo start",
    "android": "cd apps/expo && npx expo run:android",
    "ios": "cd apps/expo && npx expo run:ios",
    "web": "cd apps/next && yarn next"
  },```
and use Simpulator with iOS 17. It works for me.
nandorojo commented 6 months ago

Hey guys, I pushed a fix for the newest starters. They now use Expo Go by default. Expo is very confusing with this workflow tbh, I wish it were more clear.

Option 1: If you're on an existing starter, just remove --dev-client from the start script in apps/expo. This lets you use Expo Go. Unlikely workflow to stick with.

Option 2: If you want to use a dev client (recommended), first run expo run:ios or expo run:android in apps/expo, and then run yarn native.