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

做了个静态库,加到其他项目工程编译报错了,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)

这个是怎么回事呢?


不兼容arm7 么?


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


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

【热门文章】
【热门文章】