I am trying to run my React Native app in XCode and I keep getting this error. I cannot figure out how to resolve the issue. Any suggestions?
Screen Shot of Error in
If you havent run npm install
you are likely to encounter this issue.
Make sure that the path to your project don't have any spaces. Just renaming folders and deleting spaces solves the problem for me.
I ran into this problem after my first try running a React build in XCode, and all I had to do was actually build and run to make the error go away (after picking a team and proper provisioning). Sometimes XCode shows errors that aren't really errors until it compiles and links things the first time.
I solved this problem by following steps:
React.xcodeproj
from Libraries
to the root of the project.SaleKit
) in TARGETS
Build Phases
Target Dependencies
add React
Run npm install
in your project directory to install react-native
resolving this error.
xcode Product->Scheme->Manage Schemes click '+' at the Target to select "React" and set the React is shared.