Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to link libcommonCrypto.dylib in project.?

I know this has been asked before but the answers at those questions don't address my solution. thats why i have to post a new question.

the problem is previously I have linked libcommonCrypto.dylib and built the project the error was

ld: cannot link directly with /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/system/libcommonCrypto.dylib.
 Link against the umbrella framework 'System.framework' instead. for architecture armv7

after searching over the google tried the following solutions

  1. added libz.dylib
  2. added SystemConfiguration.framwork
  3. imported

it was stated at one place that i should add JavaScriptCore.framework but in framework list of Xcode I wasn't being able to find this framework

STill the error remains..

Any help .. what am i doing wrong ??

like image 921
Dev_Dash Avatar asked Feb 20 '14 10:02

Dev_Dash


1 Answers

I had the same problem. and don't know the exact reason why this worked.. but try this if this help.

go to Project Target >> summary tab >> see the section- Linked Frameworks and Library >> select the two libraries (libz.dylib, libcommonCrypto.dylib) >> and hit the "-" button at the bottom of the section.

now build the project.. i think it should work now, mine did.

hope it does solves your problem.. happy coding.

like image 156
Pawan Joshi Avatar answered Oct 05 '22 14:10

Pawan Joshi