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

28,169

Solution 1

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

Solution 2

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.

Share:
28,169
Adamski
Author by

Adamski

Freelance web developer, programmer and music producer living in Bristol UK.

Updated on July 09, 2022

Comments

  • Adamski
    Adamski almost 2 years

    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?