cocoaPod安装使用中遇到的问题

一. ios Undefined symbols for architecture arm64:错误解决

出现问题:

  1. Undefined symbols for architecture x86_64:  
  2. "_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:  
  3.       objc-class-ref in AFNetworkingUtil.o  
  4. ld: symbol(s) not found for architecture x86_64  
  5. 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 加入以下配置



原文地址:https://www.cnblogs.com/wangguimin/p/5691223.html