在iOS 7 sdk和xcode 5上编译PJSIP时出现链接器错误

时间:2014-03-03 12:55:21

标签: ios linker makefile xcode5 pjsip

在使用iOS 7 SDK(xcode 5.0.2,Mavericks 10.9.1)编译PJSIP时,我收到此链接器错误。

Undefined symbols for architecture armv7s:
  "_aes_icm_advance_ismacryp", referenced from:
      _aes_icm_encrypt_ismacryp in libsrtp-arm-apple-darwin9.a(aes_icm.o)
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../bin/pjmedia-test-arm-apple-darwin9] Error 1
make[1]: *** [pjmedia-test] Error 2
make: *** [all] Error 1

我该怎么办?

1 个答案:

答案 0 :(得分:3)

您可以使用pod 'pjsip'从cocoapods下载预建的pjsip库(armv7,armvs7,arm64,i386),也可以自行编译来自https://github.com/chebur/pjsip

build.sh脚本