美文网首页
Target 'Pods-xxxx' of project a

Target 'Pods-xxxx' of project a

作者: Haydn | 来源:发表于2018-04-10 10:07 被阅读0次

    编译错误:library not found for -lAFNetworking
    仔细看提示,有一个warning:

    ld: warning: directory not found for option '-L/Users/haydn/Library/Developer/Xcode/DerivedData/Wallpaper-dlkcvycuijeouddpdiptqyyiytmw/Build/Products/Debug-iphonesimulator/AFNetworking'
    

    去相关目录下查找,这个位置是空的,也就是说,pod的库,根本没有build进来。
    实际上不仅 AFNetworking 有 warning, 所有pod库,找不到。

    仔细看所有warning,有一条似乎相关:

    Target 'Pods-xxxx' of project 'Pods' was rejected as an implicit dependency for 'libPods-xxxx.a' because its architectures 'x86_64' didn't contain all required architectures 'i386 x86_64'“
    
    屏幕快照 2018-04-10 上午10.07.38.png

    在pod target 设置 'Valid Architectures' 设为 'armv7' 'armv7s' 'arm64',

    屏幕快照 2018-04-10 上午10.06.20.png

    也调pod 工程的 同样设置。

    不解决问题。

    最后,调项目工程的同样设置,把 Build Active Architecture Only 设 yes,解决问题,如图:

    屏幕快照 2018-04-10 上午10.09.08.png

    相关文章

      网友评论

          本文标题:Target 'Pods-xxxx' of project a

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