做了个静态库,加到其他项目工程编译报错了,Undefined symbols for architecture armv7:

(null): "_xxxx_xxx_ex", referenced from:
_parse_string in xxxlib.a(afmobi_json.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这个是怎么回事呢?

阅读 6.6k
3 个回答

不兼容arm7 么?

据我推测,应该是你用了xcode5发布ios6的lib导致。
我之前的解决办法,是用xcode4.6发布ios6的lib,因为ios7中,苹果扩充了c标准库。

你的静态库编译的时候也要把armv7加上才可以.

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题