react-native: Library not found after update React Native 0.62
Library not found after update React Native 0.62
ld: warning: directory not found for option '-L-L/Users/raevskiy/Library/Developer/Xcode/DerivedData/App-dcmmftlmkqpjgghaeoecsjji/Build/Products/Release-iphonesimulator/BVLinearGradient'
ld: library not found for -lBVLinearGradient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
React Native version:
System:
OS: macOS 10.15.4
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 183.48 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.11.0 - /usr/local/bin/node
Yarn: Not Found
npm: 6.14.4 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.9.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 22
- Comments: 34 (2 by maintainers)
I faced the same issue and fixed it by open Xcode and change the
Library Search Paths
to without the quote signI solved the issue by changing the build system from File-> Workspace Settings -> Build System -> “New Build System”
follow the instructions at https://github.com/react-native-community/react-native-linear-gradient
remove that library. My opinion is this issue should be closed.
Please close. Thanks
For anyone here whose error string includes
directory not found for option '-L-L/Users/....
(particularly notice the-L-L
).The solution is to move
$(inherited)
to the bottom of your Library Search Paths: https://github.com/react-native-community/upgrade-support/issues/36#issuecomment-611516268The reason this is happening is because the inherited ends up blank, so the compile command is inserting an extra blank argument before the first actual link argument, so
-L -L/Users/....
turns into-L-L/Users/...
which fails.I get something similar with Library not found for -lRNFirebase
I’m on RN 0.59.10 and this only starting failing when I upgraded rn-firebase from v5 to v6
Podfile:
ld: warning: directory not found for option ‘-L/Users/user/Library/Developer/Xcode/DerivedData/Mobile-ffdrrqgiyphlinerkjxrqqqeocrs/Build/Intermediates.noindex/ArchiveIntermediates/Mobile/BuildProductsPath/Release-iphoneos/React’
https://medium.com/@punjabicoder/react-native-version-0-62-e7414c2b2d35 here is the solution guys.
I am running on MacOS 10.14 Mojave. Working with React Native 0.62. Changing build system from Legacy to New worked for me. Thanks for a Great article!
did you solve this problem?, ive got this proble too
For my case, updating the Xcode project to recommended settings helped to fix the issue that libraries were not found for the Release build because for some reason the CocoaPods didn’t compile before the main target.
These steps are mentioned here: https://github.com/react-native-community/upgrade-support/issues/13
I faced the same issue for
react-native-viewpager
and fixed it:You need to check
Library Search Paths
for package you faced issue. If you din’t find in the list you need click on+
button and add your package: e.g.I’m getting this error “Library not found for -lRNAdMobManager” for the iOS version in xcode after installing React Native Firebase @react-native-firebase/app and @react-native-firebase/admob in React Native 0.62.2. Can anyone help please? It’s working fine in Android.