Undefined symbols for architecture

今天,将别人手工到入第三方库的项目改成Pod,pod成功以后,一直报

Undefined symbols for architecture i386/armv7

OR

Pods was rejected as an implicit dependency for 'libPods.a' because its architectures 'XXX' didn't contain all required architectures

解决方法是:

Try to set Build Active Architecture Only to NO for 'Pods' project and your app's target

注意,除了设置自身项目工程以外,还需要设置pod工程,我一直检查自己的工程,却忘了检查pod的工程

有时候,通过某种方式获取的lib就只支持特定的构架,如只支持真机,也会报这种错误,可以使用命令检查一下这个lib。

还有一种情况,某个库需要依赖于系统的framework,但是这个framework缺失,也是报这个错

你可能感兴趣的:(Undefined symbols for architecture)