I am trying to convert NSString to MD5 Hash. I have used this algorithm MD5 algorithm in Objective C
While running the program I am getting following error
ld: library not found for -lcommonCrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone tell me what I am missing here?
I have also added libcommonCrypto.dylib
Just remove the library from Build Phase -> Link Binary with Libraries. It would resolve the issue
Related
I'm working on a TLS library for the vapor project and am supporting both Apple's (Transport-)Security and OpenSSL for use in an HTTP/2 client and server.
On this line of code I'm trying to call SSLSetALPNProtocols. Regardless of my approach, I'm met with an ld linker error on that line of code.
Undefined symbols for architecture x86_64:
"_SSLSetALPNProtocols", referenced from:
__T08AppleSSL9SSLOptionV4alpnACSaySSG9protocols_tFZySo10SSLContextCKcfU_ in Options.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There's no documentation available to highlight a possible obvious mistake since the page is empty.
So, how do I get this code to compile with ALPN support?
Currently that's impossible. Apple forgot to export the SSLSetALPNProtocols and SSLCopyALPNProtocols function.
I already filed rdar://34790589 (duplicate of rdar://33907676)
As of the latest macOS and Xcode beta with Swift 4.1 I've got this up and running.
i am trying to implement Apptentive SDK in my iPhone application as per the guide document.
everything was gone good. but at last point of implementing SDK found error.that is Accelerate framework directory path not fount like that a error occurs
ld: framework not found -Accelerate
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
it may be Xcode version in-compatability issues, if we change directory path it may works
Pulling my hair out on this Library not found error after updating to Xcode 5!
ld: library not found for -lAppLovinSdk
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried with Library Search Path but no luck.Does any one know how to solve this?
When I use GooglePluse Library file it works on iphone simulator.
But when I run it on device it gives the following Error:
ld: duplicate symbol _OBJC_CLASS_$_GooglePlusSignIn in /Pratik workspace/Fitness
app/Fitness Ap/Fitness/lib/libGooglePlusUniversal.a(GooglePlusSignIn.o) and /Pratik
workspace/Fitness app/Fitness Ap/Fitness/lib/libGooglePlus.a(GooglePlusSignIn.o) for
architecture armv7 clang: error: linker command failed with exit code 1 (use -v to
see invocation)
you will have 2 files with same name that's why it is giving error like this.
go in targets ->Build Phases ->Compile sources and try to remove GooglePlusSignIn file.it will be there i think.
then run again and let me know whether it is working or not..!!!
Happy coding...!!!!
A bit of background first, I am currently writing some ocunit tests for a universal framework, and now need to add OCMock to test some networking aspects of the framework. I have followed the OCMock instructions here and downloaded the sample project as a reference. I've added libOCMock.a in Link Binary with Libraries in the Build phases and added the header location to Header Search path and set the linker flags to
-ObjC
-force_load
"$(SRCROOT)/Libraries/libOCMock.a"
The error message I'm getting when I run my tests is as follows:
ld: 73 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be greatly appreciated