lib commonCrypto not available for iOS simulator?

廉价感情. 提交于 2020-01-30 04:21:08

问题


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?


回答1:


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

iphoneOS >> usr/include

and

iphoneSimulator >> usr/include



来源:https://stackoverflow.com/questions/9839193/lib-commoncrypto-not-available-for-ios-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!