I am facing some errors while running the command react-native run-ios .
Everything is fine and there are no errors in the code or libraries.
I am facing issues while building the project files.
Below is the screenshot for the same:
"react": "16.13.1",
"react-native": "0.63.4",
My simulator gets opened but the application is not getting installed.
Related
I want to create an (template) expo go app in VS Code with npm start. The (iOS) simulator opens, but the Expo Go app does not. When clicked it opens and immediately closes without any errors or warnings, neither in the terminal nor in the simulator.
I am using ruby v3.2.0, node v18.13.0, watchman 2023.01.30.00, npm 8.19.3. The dependencies in the package.json are below. I tried different versions of iOS simulators, but neither works (iPhone SE and iPhone 14). It does work on a device and in a browser. I tried reinstalling all systems and suggestions from https://blog.expo.dev/expo-sdk-43-aa9b3c7d5541.
Any ideas?
"dependencies": {
"expo": "~47.0.12",
"expo-status-bar": "~1.4.2",
"react": "18.1.0",
"react-native": "0.70.5"
},
"devDependencies": {
"#babel/core": "^7.12.9"
},
i had the same problem, if you are using a m1 macbook, you have to download rosetta because expo was created for intel chips.
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
I'm trying to run a react native app, but upon doing react-native run-ios and opening the app in the simulator, I'm getting the following error:
I'm tried running npm install to no avail. How to fix this error?
install this package:
npm i #react-native-community/cli
I picked up a react-native project from 2018. I was able to get the app to work in a simulator by typing npm install; npx react-native run-ios on a 2012 mac mini that had Xcode 9.0 installed.
However, the iPhone 11 was not available from the list of simulators. I read that I needed Xcode 11+ to get iPhone 11 simulator. So i upgraded my mac mini from OS 10.13 to OS 10.15, then I upgrade Xcode to version 12.0.
I loaded up the new Xcode and entered my Apple ID. I then went to terminal and typed npx react-native run-ios, but I got the error:
`instruments` is now deprecated in favor of 'xcrun xctrace' (see `man xctrace` for more information on its replacement)
Could not find iPhone 6 simulator
So then I ran the command rm -rf node_modules; npm install;, but then I got the error:
npm ERR! error: pathspec 'master' did not match any file(s) known to git
And trying to run npx react-native run-ios gives the error:
Command `run-ios` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.
How do you make npx react-native run-ios to work?
i think your project choose IP6 is default simulator, to change it,
Clone your project, in package.json change
"ios": "react-native run-ios --simulator="iPhone X""
then run : yarn ios
if not, open your project "yourproject.xcworkspace" with Xcode, and run it.
if the error persists, show your package.json for everyone to consider
I've been using ReactNative in Windows. Android is perfect and now it has to build on the iPhone and give ipa to clients.
However, even if you run counter-native run-ios after updating the code yesterday, the app will not be launched on the simulator.
I started a new project because I thought there might be a problem with my project, and then I ran a counter-native run-ios, but I failed.
The terminal is output as a successful build, but there is no response to the simulator.
App is not installed.
Somebody please help me.
react-native version is 0.59.9
Images are run on terminals and simulators.
As in latest react-native version 0.60.0 + they have fixed too many problems which are with integration of latest xCode version.
Please do the following to achieve
Upgrade react-native version to 0.60.0 or +
rm -rf node_modules/&& yarn install && react-native link
cd ios and then pod install
Close the bundle and run(Cmd+ r) from xCode
Well, in my case I was in sudo mode. When I turned it back to normal mode, it showed up on the IOS simulator as an app.