lib commonCrypto不适用于iOS模拟器?

时间:2012-03-23 12:28:22

标签: iphone ios simulator commoncrypto

我已经将libCommonCrypto.dylib添加到我的项目中以进行md5哈希验证。适用于iPhone(iOS 5.1),但当我尝试在模拟器上运行时,我收到此错误:

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

我为什么会发生这种情况有点无能为力。我将commonCrypto添加到项目目标 - >构建阶段 - >链接二进制文件库。是否还需要其他步骤才能让它在模拟器中工作?

1 个答案:

答案 0 :(得分:19)

您不必添加该动态库。

默认情况下可用
  

iphoneOS>> usr / include

  

iphoneSimulator>> USR /包括