react-native run-ios ends up with error 65 - cannot build - react-native

React-Native run-ios build error 65
I've tried many things. I did a pod install in the ios folder. I tried pod update. I tried restarting VScode and xcode. I tried restarting the computer. I tried running another react-native project successfully. I tried doing a gem instal cocoapods. I tried commenting out components. I don't know what else to try.
Simulator 11.1
Xcode 11.1
vscode 1.38.1

Related

Unable to run expo project on iOS simulator

I created an expo project and I am trying to run it on both an iOS and an android simulator. Everything works fine on the android simulator but not on the iOS simulator. I am getting the following error:
Error installing or running app. Error: ENOENT: no such file or directory, mkdir '/Users/.../.expo/ios-simulator-app-cache/Exponent-2.16.0.tar.app'
In advance thanks
For some reasons the /Users/.../.expo/ios-simulator-app-cache/ install on my computer was version 25 and my project was expo version 26 that is why it could not find the directory. To solve the problem I ran sudo rm -rf ~/.expo to remove the expo on my computer then I just retried it and it worked

Can't open React Native project

I have a problem with RN. I'm a newbie in RN, but I know a little bit of React.
So I tried to clone and open this project: https://github.com/mapbox/store-locator-react-native/
But I couldn't. I tried putting expo and running the project on an Android emulator, but even after I tried installing and uninstalling multiple packages, I always get some error. I also tried with npx react-native run-android but it doesn't work (in the folder with the project, not the base).
Could please someone tell me how to make this project work on my local machine and maybe even upgrade it to the newest RN?
Thanks
you have to navigate to your project
follow the steps
i am assuming your project on Desktop
launch terminal and write
cd Desktop/RNStoreLocatorExample
if you have IOS platform
do
npm install
cd ios
then
pod init
pod install
cd ..
react-native run-ios
or if you have android
write
react-native run-android
Hope it will work

How to fix React/RCTBridgeDelegate.h' file not found

I created new project by react-native init.
but I can not run it.
gave me error React/RCTBridgeDelegate.h file not found.
react-native run-ios at terminal in mac
You are getting this error because the necessary cocoapods are not installed in the Xcode project
This is how you fix it
Navigate into your ios file in your terminal (cd > ios)
Run the command: Pod install
Navigate back to the root of your project and run it.
It should run just fine now. :)

react-native 0.57.2 bundling failed on windows

I am using react-native-cli 2.0.1 and react-native 0.57.2 on windows 10.
When I create a project with react-native init projectname and try to run it with react-native run-android I get this error:
I tried removing node_modules and reinstalling but that didn't work.
I also had problems with the newest version of react-native on windows. After trying a lot of "workarounds", there seems to be a bug with the 0.57.x versions on windows. Then I found a solution, use the version 0.55.4 of react-native. Just run react-native init yourApp --version 0.55.4.

react-native run-android not working on ubuntu 16.04

i have a problem with react native in ubuntu, i have installed,
java jdk 8 (both javac --version) as well as echo $JAVA_HOME gives the proper output.
I have also installed android studio and set the android environment variables as well as the tools and echo $ANDROID_HOME gives output of the sdk location.
I have also installed gradle version 4.4.
I am unable to start the android app using react-native run-android. can any one let me know if i have missed something during installation.
And react-native as well as android studio works fine as I am currently using react-native start to start the metro builder as well as the other react-native cli commands. also android studio and gradle is also able to generate debug as well as release apks with no problems.
The error i get,
Scanning folders for symlinks in /home/igate-naveed/Documents/ReactNative/mobile-app-android/node_modules (16ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
First of all you need to create a project like this:
react-native init myProjectName
Then, start an emulator from Android Studio... Afterwards:
npm install && npm start
in your project directory, and from another terminal, inside your project directory, run :
react-native run-android
Is this working?
Instead of using the npm install manager, I used yarn and it worked for me. In your project directory, just do:
(project-directory)$ yarn
Update the gradle version.
Create new project:
react-native init projectname
Uninstall the npm pack.
Reinstall the npm pack again.
npm start
react-native start
react-native run-android