cocoaPod安装使用中遇到的问题
一. ios Undefined symbols for architecture arm64:错误解决
出现问题:
- 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=1
3、解决步骤:
3、解决步骤
a、Build Setting -> Architectures & Valid Architectures 检查配置是否正确
b、确认如图无误,再 在Build Setting ->
linking 加入以下配置