Reputation: 659
I have a react native project that runs successfully on simulator but not on device.
I have run the project on the same device before, but not since I've incorporated cocoapods, though none of the above library are in cocoapods. I'm building in xcworkspace rather than a project file, not sure if that is it.
Not sure what this could be... Any suggestions appreciated!
Upvotes: 0
Views: 568
Reputation: 7096
Usually these type of errors appear when the libraries are not linked with the project.
The libraries might have been unlinked after adding cocoapods. Try running npm install
and then react-native link
to link all the libraries or run react-native link <library-name>
to link the specific library in the terminal from your project root directory.
Upvotes: 2