Sam Bellerose
Sam Bellerose

Reputation: 1812

ld: library not found for -lReactNativeNavigation

I'm new to React-Native and I'm trying to figure out how to run the project on iOS. I know this error means I need to add the library .xcodeproj to XCode, but where is this file located? I'm using react-navigation and I installed it with yarn and after I have run the command react-native link

Thanks for your help!

Upvotes: 1

Views: 1609

Answers (3)

Arun Wilson
Arun Wilson

Reputation: 181

For those who are using react-native-navigation and still got this issue consider updating IOS Target Deployment to version 11 in Xcode Build Settings

from https://github.com/wix/react-native-navigation/issues/6734#issuecomment-720735261

Upvotes: 0

Sam Bellerose
Sam Bellerose

Reputation: 1812

Just to add to @Rafael's answer, I previously added React-Native-Navigation and yes it was still linked in the Link Binaries With Libraries, so I deleted it, here's a picture showing which library to remove enter image description here

Upvotes: 1

Rafael Motta
Rafael Motta

Reputation: 2547

Seems like you have a previous installation of react-native-navigation, which uses native code.

First you need to unlink this library:

react-native unlink react-native-navigation

Note: You need to have the source code of the react-native-navigation package in order to unlink. If you already removed from you package.json, you need to install again to unlink.

After unlink, you can remove the react-native-navigation and just move forward using the react-navigation library, which does not need to link native code.

Upvotes: 2

Related Questions