转载自:http://www.jianshu.com/p/87bb9a9c2a66
使用cocoapod加入第三方库,打开项目有时会出现编译错误,错误如下
[objc]view plaincopy
Undefined symbols for architecture x86_64:
"OBJC_CLASS$_AFHTTPRequestOperationManager", referenced from:
objc-class-ref in AFNetworkingUtil.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1、AFNetworkingUtil 是自己写的一个类,类中用到了 pod中AFNetworking框架的头文件2、出现编译错误在stackoverflow找到这个问答http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64?rq=13、解决步骤a、Build Setting -> Architectures&Valid Architectures 检查配置是否正确
b、确认如图无误,再 在
Build Setting ->
linking 加入以下配置