library not found for -lDoubleConversion
library not found for -ldoubleconversion react native
library not found for ios
library not found for -lfbsdkcorekit unity
library not found for -lgoogletoolboxformac ionic
library not found for -lgoogletoolboxformac
ld: library not found for -lpods xcode 9
library not found for react-native ios
I tried to build on XCode but
ld: library not found for -lDoubleConversion error occurs. I could build
react-native run-ios. That would work, but XCode could not build...
ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/DoubleConversion' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/Folly' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/GTMOAuth2' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/GTMSessionFetcher' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/Google-Maps-iOS-Utils' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/Protobuf' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/React' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/glog' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/leveldb-library' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/nanopb' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/react-native-google-maps' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/react-native-maps' ld: warning: directory not found for option '-L/Users/xxxxx/Library/Developer/Xcode/DerivedData/xxxxx/Build/Products/Debug-iphonesimulator/yoga' ld: library not found for -lDoubleConversion clang: error: linker command failed with exit code 1 (use -v to see invocation)
For me, I solved just opening the
MyAppName.xcworkspace instead of
MyAppName.xcodeproj, and then, building.
library not found for..?, Remove the reference to the library and add it again, it will solve the problem. I did follow all the steps mentioned above, and nothing seems to fix my issue, running react-native run-ios work great, but running from xcode it keeps throwing the Xcode Build error: library not found for -lDoubleConversion 👍
I had this issue a bit ago after upgrading to RN 0.59.
The solution that worked for me, was to delete the
ios/build folder, and then do this:
cd ios pod install
When I did that, I saw an error about
Folly, and people were recommending to do this:
pod deintegrate pod install
I did that, but it will still throwing the error about
Folly, so I deleted the
Podfile.lock because pods was holding onto an old version of Folly that was incompatible with RN 0.59.
NOTE: I found a post by someone that said deleting the entire lock file isn't recommended. Instead, you should delete only the relevant lines in the lock file, the lines that pertain to Folly. I had already deleted the lock file, but everything worked out ok.
pod update which updated a bunch of stuff and completed successfully.
The next time I ran
pod install, it produced a nice list of green, successful installs.
Then I did
react-native run-ios again, and it worked for the first time in a while, except it produced the red screen of death.
So I deleted my app off the iOS simulator device, then ran:
rm -rf node_modules npm install killall -9 node
killall -9 node is just to kill the Metro Bundler. It is my favourite sweeping command for that. If you are running like twelve node.js APIs on your machine, maybe instead do something like
sudo lsof -i :8081 and find the process ID for Metro Bundler(s) and kill those by PID. For example if you see Metro Bundler is running as PID 27322, then do
kill -9 27322.
Then I ran this in a standalone terminal:
npm start -- --reset-cache
back in the VS Code integrated terminal:
IT WORKED !!!!!!!!
Then I ran:
that worked but got stuck at 0% on the simulator device, so I deleted the APK off the simulator and ran
react-native run-android again.
IT WORKED !!!!!!!!
library not found for -lRNFirebase · Issue #1978 · invertase/react , Issue I can't get Firebase Analytics on iOS working because the project doesn't compile. I get this error: library not found for -lRNFirebase. Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
XCode can't find the lDoubleConversion library, you need to add the library to the cocoa pods file.
you can do this easily by following these steps
1.Add the library file to your podfile
pod 'DoubleConversion', :podspec => './../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
2.Delete the Podfile.lock
3.Run pod install
4.Add the DoubleConversion.a in xcode Linked frameworks and libraries
5.Clean the project and build again.
That should works.
ld: library not found for -lGoogleToolboxForMac · Issue #137 , Hi, I have included file libGoogleToolboxForMac.a file in library but its showing red, and project giving me the error "ld: library not found for . 32bit-64bit aangular aapt abd abdroid abstract abstract-class access-tokan aclipse acsess-tokan adb addeventlistner addevntlistner admob ads adt ag-grid airflow ajax alarmmaneger algebra amazon-ec2 amazon-s3 amgular-material amgular2-routing anaconda anchor andoid-notification andridx andriod android android-7.0-nougat android-8.0 android-8.0
Sometimes it's as easy
pod install inside
/ios then close xcode and reopen it and rebuild. Worked for me.
iOS & tvOS Xcode Fails: 'Library not found for -liPhone-lib', After updating my project (macOS, iOS, tvOS) to Unity 2019.2.13f1, it built to macOS fine without issue but once converted to iOS and built to ld: library not found for -lGoogleAnalytics clang: error: linker command failed with exit code 1 (use -v to see invokation) I've spent some time googling but can't find how to fix this problem. I'm new to xcode and this is an existing project that I need to work on.
The following steps worked for me:
Remove use_frameworks! from ios/Podfile.
target 'AwesomeProject' do # use_frameworks! ... end
Add DoubleConversion pod in ios/Podfile
target 'AwesomeProject' do # use_frameworks! ... pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' end
pod deintegrate pod rm Podfile.lock
pod install --repo-update --verbose
Open AwesomeProject.xcworkspace and run your app.
Hope this helps someone :)
Why am I getting a 'Library not found' error in Xcode during , ld: library not found for -lCrittercism_v5_3_0 (or whichever version you're using) clang: error: linker command failed with exit code 1 (use -v to For those projects and react-native I found that switching to the Legacy Build Systems solved the problem where the dependencies (third-party / glog etc) are not correctly generated on the first build. To switch to the legacy build system do the following: File-> Project/Workspace Settings Under Build System choose: Legacy Build System
Build Failed with Error: "library not found for -lcrt1.3.1.o", Symptom. Build.log shows the error below: lc: library not found for -lcrt1.3.1.o clang: error: linker command failed with exit code 1 ld: library not found for -lPods-[app] clang: error: linker command failed with exit code 1 (use -v to see invocation) It works on debug, and (well at least it doesn't throw an error) when I archive the project. I've having a "staging" target because of code-push.
"ld: library not found for -lssl" trying to install mysqlclient in Python on , I don't know how many times I've encountered this but by blogging about it, hopefully, next time it'll help me, and you!, find this sooner. If you get
Troubleshooting, If Xcode complains when linking, e.g. Library not found for -lPods , it doesn't detect the implicit dependencies: Go to Product > Edit Scheme; Click on Build; Add
- For me too... but why?
- Wow, thank you so much it solved my issue. But it would be better if you shed some light on this fix.
- As for why its probably because you're using cocoapods and the pods are only included in the workspace so do not get built when building from the xcodeproj.
- For those new to React Native, like me, you can find . xcworkspace at [project_name]/ios/.xcworkspace — Open this in Xcode instead of *.xcodeproj (I spent half an hour confused about xcworkspace vs xcodeproj)
- Love the enthusiasm
- it stopped working after I added another package and did
- Where can I find DoubleConversion.a to add it?
- not sure about the DoubleConversion.a, but DoubleConversion lib it's in node_modules/react-native/third-party