Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lib commonCrypto not available for iOS simulator?

I've been adding libCommonCrypto.dylib to my project to do md5 hash verification. Works all proper on the iPhone (iOS 5.1), but when I try to run it on the simulator, I get this error:

ld: library not found for -lcommonCrypto
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm a bit clueless why this happens. I added the commonCrypto to the project target -> build phase -> link binary with libraries. Is there any additional step required to get it working also in the simulator?

like image 295
Martin Schultz Avatar asked Mar 23 '12 12:03

Martin Schultz


1 Answers

You don't have to add that dynamic library. It is available by default in

iphoneOS >> usr/include

and

iphoneSimulator >> usr/include

like image 176
Vignesh Avatar answered Sep 28 '22 06:09

Vignesh