Closed AchrafBn closed 1 year ago
@AchrafBn thanks for reaching out. As far as I remember --dev-client
is not needed anymore, also, from the looks of it, the QR is telling your browser to open localhost:8081
instead of yourmachineip:19000
or with any other port expo uses. I am unable to say that it is caused by the bare workflow as I myself don't use it, as dev-client solved all my necessities. What I can think of is to run yarn start
which should do yarn expo start
under the hood, if it doesn't, normally when you start the server, it logs to your terminal at which IP address and port it is linked to (e.g.: 192.168.1.112:19001
and so on), you should try typing this link manually in your browser to see what happens. If both of these doesn't work, I'm seriously unable to help you further, as I've never developed anything for/on a apple device and don't know how it works in there.
@ivopr yarn expo start
it works ,I was running the wrong command. Thanks
Hi, I am building my app on a physical device using Xcode. After, the launcher screen appeared. Then, I ran the command 'npx expo start --dev-client'. After scanning the QR code, Safari opened with the message 'Safari cannot open the page because it could not connect to the server' with this URL: http://localhost:8081. (Metro waiting on http://localhost:8081)
When I hit 'r' to reload, it says 'warn: No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.',but It works fine on the iOS simulator My computer and device are connected to the same Wi-Fi.
Any help to fix it please ?
Package versions
Environment