美文网首页iOS Developer好东西
解决使用pod导致的 library not found for

解决使用pod导致的 library not found for

作者: 小码农_gjw | 来源:发表于2016-11-17 10:49 被阅读617次
    1. 前言

    近期手贱把cocoaPods从 0.93 升级到 1.1.1 了,在执行完 pod install 后报错如下

    library not found for -lAFNetworking
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    
    
    2. 解决方案

    在各种 google 后最终找到解决办法:
    Search PathsLibrary Search Paths 添加

    "$PODS_CONFIGURATION_BUILD_DIR/AFNetworking"
    

    添加完后编译工程通过

    注意:

    如果Library Search Paths$(inherited) 项,要记得添加 $(inherited)

    相关文章

      网友评论

        本文标题:解决使用pod导致的 library not found for

        本文链接:https://www.haomeiwen.com/subject/itjdpttx.html