I'm currently trying to upgrade react-native to 0.61.5 from 0.59.10 and faced this error:
ld: library not found for -lRCTBlob
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried pod install, pod install --repo-update, pod update and that:
- Clear the cache of pod with:
1.1 rm -rf ~/Library/Caches/CocoaPods
1.2 rm -rf Pods
1.3 rm -rf ~/Library/Developer/Xcode/DerivedData/*
1.4 pod deintegrate
1.5 pod setup
2. And delete the project's Pods directory. The location of it is project directory > ios > Pods.
3. Then in the project directory > ios location, install pod with pod install
4. And react-native run-ios in project directory.
-
Could you post your package.json and pod file here. I think it will be more helpful for others to help to you.EL173– EL1732019年12月18日 02:32:08 +00:00Commented Dec 18, 2019 at 2:32
-
have you found the solution to it? as per my project issues, i found that its the issue with all the libRCT files. none of them are found.praveen seela– praveen seela2020年03月18日 02:15:41 +00:00Commented Mar 18, 2020 at 2:15
-
Does this answer your question? ld: library not found for -lRCTBlob clang: error: linker command faileddzlp– dzlp2020年04月04日 05:01:37 +00:00Commented Apr 4, 2020 at 5:01
1 Answer 1
Solution moved from @alex's question post.
In your XCode you need to found
Build phaseslink, thenLink Binary With LibrariesselectlRCTBloband click -(minus) in the end of list