cocoaPods 那些事

    Undefined symbols for architecture armv7:
    "_OBJC_CLASS_$_AFHTTPResponseSerializer", referenced from:
    objc-class-ref in NetManager.o
    "_OBJC_CLASS_$_AFHTTPSessionManager", referenced from:
    objc-class-ref in NetManager.o
     "_OBJC_CLASS_$_SDImageCache", referenced from:
    objc-class-ref in startAdImageViewController.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:
设置cocoaPods中所以库的 Build Active Architecture Only

1.首先先选中工程中的Pods 工程 targets -> 选中框架(比如AFNetworking)->Build Setting ->Architectures -> Build Active Architecture Only ->Debug设置为NO

cocoaPods 那些事_第1张图片
Paste_Image.png

你可能感兴趣的:(cocoaPods 那些事)