Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods with React Native: `ld: library not found for -lReact`

I am integrating React Native with an existing iOS app. I have followed the guide on integrating with an existing app.

After reading some other posts on the subject, I have tried:

  • Setting the architecture in the Pod build to match the project settings in Xcode
  • Adding / moving the Pod build above the project build in the Scheme

Is there anything else I may need to check?

like image 772
Adamski Avatar asked Jan 09 '16 17:01

Adamski


2 Answers

Make sure you open xcworkspace file generated by pod install instead of your old xcodeproj file and then select the right scheme

like image 166
Navdeep Singh Avatar answered Oct 02 '22 06:10

Navdeep Singh


In my case I had to change my deployment target to 11.0. I had changed my Pods level to 11.0 but not the xcode setting. Look in the Deployment Info section of your target General tab right next to the iPhone/IPad checkboxes.

like image 21
Glenn Avatar answered Oct 02 '22 06:10

Glenn