I have problem with running expo, newly created app (empty Hello World!). It works perfectly with android studio emulator, but when I try to open it on the IOS simulator Expo go app is being installed, but app is not starting. It looks like crash without any errors in console (expo app splash screen is visible for a moment, then app disappears).
My Xcode app is updated
My dependencies:
"expo": "~47.0.8",
"expo-status-bar": "~1.4.2",
"react": "18.1.0",
"react-native": "0.70.5"
I tried:
granting different permissions for Xcode app on my macOS
removing node_modules and package-lock.json and installing dependencies again (npm install)
removing .expo directory
using different ios simulators
uninstalling expo app on simulators and resetting them
I also followed expo documentation and I have Xcode command line tools installed (https://docs.expo.dev/workflow/ios-simulator/)
Any suggestions?
You might need to install Rosetta if you are working on an M1 MacBook, because expo was created for intel chips.
softwareupdate --install-rosetta
Expo Go app in simulator closes automatically without errors
Related
I have upgraded expo sdk to recent version 47.0.0.
And expo asked me to upgrade Expo Go version in IOS simulator, so I removed app in IOS simulator.
Then run expo start --ios
It stuck in downloading Expo Go app into IOS simulator.
To fix this, I tried these.
tried on different IOS simulators (iPhone 12, iPhone 12 Pro)
reset IOS simulator (Erase All Content and Settings...)
restart Computer.
installing fresh new app (it stucks too)
Lastly, I tried this
expo client:install:ios
It stuck too, but a few mins later, it shows this message.
This download is taking longer than expected. You can also try downloading the clients from the website at https://expo.dev/tools
Expo Info here:
Thanks.
This was netowork issue, Please check VPN or Firewall or Proxy
I have an Ionic project. I wrote and compiled it for Android on Windows. My project is running on Android. But I don't know how to compile the project on Mac. I installed XCode. I copied
../platform/ios
folder to Mac.
I open the project. I get the error:
"Couldn't load project" "The file couldn't be opened".
How can I open the project in Xcode? Thanks.
You need to copy whole project on Mac. Then add iOS platform to it, and then you can open it in Xcode.
This guide covers how to run and debug Ionic apps on iOS simulators and devices using Capacitor or Cordova. iOS apps can only be developed on macOS with Xcode installed.
Setting up a Development Team
All iOS apps must be code signed, even for development. Luckily, Xcode
makes this easy with automatic code signing. The only prerequisite is
an Apple ID.
Open Xcode and navigate to Xcode » Preferences » Accounts. Add an
Apple ID if none are listed. Once logged in, a Personal Team will
appear in the team list of the Apple ID.
Cordova Setup
The ios-sim and ios-deploy are utilities that deploy apps to
the iOS simulator and iOS devices during development. They can be
installed globally with npm. This section is not necessary for Capacitor.
$ npm install -g ios-sim
$ brew install ios-deploy
I've been having hard times with my old Windows laptop while developing React Native apps so I moved to MacOS laptop. I installed Android Studio and Xcode (including Xcode command line tools). Then I initialized a blank expo managed project. I started both on Android Emulator and iOS simulator. Android one worked out with an ádb´ error (or maybe warning). But on the other hand, iOS simulator did nothing. There's no Expo Go app installed on iOS device, so it can not launch my app using it. I don't get any error or warning related to this problem, so I can't trace the problem.
I have tried deleting global expo folder located at ´~/.expo/´, I also tried to give 777 (all permissions) on that folder to my current user.
I tried uninstalling and reinstalling expo package globally.
I made sure I have selected Xcode command line tools on ´Xcode -> Preferences -> Locations -> Xcode 13.2.1 (13C100)´
I tried to launch different iOS devices like (iPhone 6, 8, 13, iPod etc.)
I tried clearing cache and starting expo with ´sudo npm start --clear-cache´
I have been trying to solve this for at least 2 hours tried everything possibly related to my problem but none of them did work. There's one thing I don't understand though. Even though I used different iOS device simulators the Expo Metro Bundler showed this ´› Opening exp://10.42.33.15:19000 on iPhone 8´ output. I have tried iPhone 13, iPhone 6, iPod etc. but this was the same output for different devices. Here's some screenshot related to probem:
https://www.youtube.com/watch?v=dvuZn6gX_Q4
This tutorial video on YouTube helped me solve my problems. I think I was missing a few things:
I haven't granted required privacy permissions on my Mac for Xcode, Android Studio and VS Code. Open System Preferences > Security & Privacy > Go Privacy Tab > Give Full Disk Access to Xcode, VS Code, Android Studio, Terminal and Watchman (Watchman is not required, but I have also installed it for solving a problem before)
You should to launch both your Android and iOS simulators before starting your expo application. Simply go to Android Studio and launch your device. To launch iOS device use bash and type open -a simulator.
If you don't have Expo Go app installed on your iOS simulator then you should first install it before starting your expo app. To install it use expo client:install:ios command.
Start your app by using expo start command. Type i and a or click on Run on iOS simulator and Run on Android device/emulator buttons to launch your app on devices.
NOTE: If you app gets stuck at New update available, downloading... stage then you can start your expo app with cleaned cache using expo start -c command. It was helpful for me.
NOTE 2: You may need to use sudo command on some of the commands I've mentioned, I'm not sure which ones are required or not.
I run into the same issue every time when I tried to set it up on a new laptop.
Its fixed after the installation of xCode cli.
Take a look at this - https://docs.expo.dev/workflow/ios-simulator/
I fixed similar issue by hard restarting simulator
Top menu -> Device -> Erase All Content And Settings...
I have react native cli application and when I tried to run it on simulator using npx react-native run-ios command it builds app successfully, bundler gets started and it shows 100% complete of bundler process but on simulator app is not being installed.
Note: simulator opens automatically but app not installed. When I use Xcode to run app it is working fine
Can you please help me with this.
Video
Thanks
Finally I get it working by clearing all cash using DevCleaner(From app store) also deleted all core simulators and added few again. I specified name of simulator as well with command as npx react-native run-ios --simulator="iPhone 11"
I recently updated my Mac to OS.12.6 Sierra.
Previously working React Native (nothing fancy just their AwesomeProject sample app) stopped working.
When I run react-native run-ios I am able to launch the simulator the app just appears, and then crashes back to the iphone app screen without any error messages.
I have uninstalled and reinstalled react-native-cli, upgraded brew, watchman and reinstalled node modules..but no luck
Anyone has any pointers on this ?
I was having the same issues too after upgrading to Sierra 10.12.6.
I resolved by running create-react-native-app <folder>
And then I ejected it with yarn run eject
yarn run ios after, and the app seems stable.
I found out the rootcause of the issue.
Looks like this is a bug with the latest version.
Facebook has acknowledged this as a bug.
The workaround is to create the project with an older version like 0.44
https://github.com/facebook/react-native/issues/15770