Chris
Chris

Reputation: 659

Why does my xcode project build on simulator but not device in xcode project?

I have a react native project that runs successfully on simulator but not on device.

enter image description here

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

Answers (1)

Dani Akash
Dani Akash

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

Related Questions