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. :)
Related
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
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
I have tried manual linking as described here but I still get the error library not found for -lPermission-LocationWhenInUse
Do the below steps
go to ios folder from terminal,
run 'pod install' or 'pod update'.
Open ios/newproject.xcworkspace.
Also do not forget to enter the permission strings for location inside your info.plist file
First run react-natve link , then cd ios and then run this command pod install
cd .. and react-native run-ios
Don't forget to install pods
I have a project downloaded from GIT in React-Native
What steps should I take to run the application in Debug mode on iOS:
on Emulator
on my Device
Firstly, install the node_modules using npm or yarn as per the git project readme.
If your react native version is above 60, it get default cocoapods support. Move to ios folder and run pod install from commandline.
Now you have 2 options to run the project:
1. Navigate to ios folder and run the command 'react-native run-ios'.
2. Open Xcode,Navigate to ios folder and open projecname.xcworkspace file. You can see the run command on top-left of the IDE.
good time.
run ios error Failed
run code
react-native run-ios
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening reactapp.xcodeproj
** BUILD FAILED **
I've got the same error when run
$ react-native run-ios
My workaround steps:
open project by Xcode and choose the signature information as the attached image.
clear build folder: 'Your Project'/ios/build
re-run:
$ react-native run-ios
Hope this help.
That's because there is a new version of Flipper and React Native might not come with the right one so best is to go in your podfile and add this use_flipper!({ 'Flipper' => '0.74.0' }) then run pod install
If you don't have cocoa pods installed you need to by command sudo gem install cocoapods and run following commands from your project main directory
cd ios
pod install
cd ..
delete build folder from ios
react-native run-ios
if error persists, 1. delete build folder again 2. open the /ios folder in x-code 3. navigate File -> Project Settings -> Build System -> change (Shared workspace settings and Per-User workspace settings): Build System -> Legacy Build System
cd ios
rm -rf build/
cd ..
react-native run-ios