I recently came back to an old React Native project that was originally built with React Native 0.23, I have tried to update the app to the latest version of React Native 0.43.3. I now have a problem where the iOS app will fail to build with the error
ld: library not found for -lRCTWebSocketDebugger
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any ideas how to fix this?
IIRC at some point (can't remember which version), RCTWebSocketDebugger.xcodeproj was renamed to RCTWebSocket.xcodeproj so you need to remove the dependency on the old lib through XCode and then run react-native link to take a dependency on the new lib.
Related
In xcode 10 I am able to build the project in debug mode but in Release mode, build failed with the following error.
ld: library not found for -lRNTuneSDKBridge
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am developing the project with React Native. It was working fine in xcode 9, after updating xcode this error comes.
Any one faced this problem? How can I resolve it?
Any help appreciated.
Thanks in advance.
You need to link the package to the library. Just follow this steps:
1- Drag and drop the iOS file of package TuneSDKBridge inside the library in Xcode
2- add it in both build phase and build setting
For more information you can find everything in the following link:
https://facebook.github.io/react-native/docs/linking-libraries-ios
I hope it is useful for you.
I installed FMDB using pods because I need to access a local sqlite database. I liked the library, but unfortunately, if I put a deployment target under iOS 8, I get this error at build
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (#rpath/FMDB.framework/FMDB) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There is a way to resolve this?
Carthage support for frameworks was added in 2.6. For now, you should be able to specify 2.5.2 2.5 in the Podfile and you should be able to Support iOS 7. I've posted an issue on github on this and we'll see if the Cocoapods configuration can be fixed.
I have been facing this lingering issue. When I try to Build the project by selecting iOS device in my Xcode it builds the code with out any error but when I trying the same with iOS simulator it shows me the following error.
ld: library not found for -lPods-ClientService
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The issue is that you are trying to use a library that you created yourself or downloaded from a 3rd party with your product, and the linker either not find it, or it does not contain a valid slice for the architecture / platform that you are trying to link.
It is most likely that the library is just an arm library, without an intel slice.
If you are building it yourself, this may be because the library and your app are in two separate Xcode projects. If you integrate them into a single project, the build system should take care of making sure that the library gets built for the correct platform and architecture(s) when building your app.
My iOS App use Google Sign in SDK with Cocoapad
I recently updated Google Sign in SDK version 2.3.2 to versions 2.4.0 use Pod Update then My App does not build on Xcode with Build failed Message
ld: library not found for -lGIDExShared clang: error: linker command
failed with exit code 1 (use -v to see invocation)
Is there any way to bypass this and add support to the library if the developer of the library hasn't updated their library yet?
Thanks a lot for your help and time.
Update
I found solved the question.
remove "-lGIDExShared" in Xcode Build Setting, Other linker flag.
Thanks for all the answers.
Install it with
pod 'GoogleSignIn'
in your Podfile. It seems the name has changed. I tested this with Xcode 7.1 and CocoaPods 0.39.0.
I recently updated my OSX to El Capitan and, because of an issue with my previous version of Unity (v 5.0.1 I believe), I was forced to update to the latest version (5.2.1f1). Now, when I build for iOS, I get the following error during the linking process:
ld: framework not found FBSDKCoreKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using the Soomla library for in-app purchases and social integration, as well as Parse for the online database. I believe at least one of these libraries could be responsible for this, since they both contain Facebook-related code. In any case, I can't figure out what I need to try next. Both plugins have been updated to their latest versions.
I attempted building with the Mono2x scripting backend first, as usual. Then, I tried changing it to IL2CPP and tried compiling for armv7, arm64, and the Universal architecture options. Nothing worked.
I also tried manually adding the FBSDKCoreKit framework file downloaded from https://developers.facebook.com/docs/ios. This also didn't work, except this time I got a slightly different error:
ld: framework not found FBSDKCoreKit clang: error: linker command
failed with exit code 1 (use -v to see invocation)
I'm not sure why it would say this when I explicitly add the framework into the Xcode project. Could anyone give me any insight?