美文网首页
解决在使用cocoapods后链接framework报错问题

解决在使用cocoapods后链接framework报错问题

作者: fuadam1982 | 来源:发表于2017-02-28 17:24 被阅读421次

项目中的Podfile使用了内嵌继承这种方式:

target 'target-Online' do
    inherit! :search_paths
    # 公用的pods
    shared_pods

    # 继承target-Online配置
    target 'target-Offline' do
        # other pods
    end  
end

然后发现target-Offline编译无问题,target-Online编译在链接时报找不到xxx framework。

通过对比发现只有search framework路径有差别,切缺少了xxx framework所在目录。然后注释掉# inherit! :search_paths。以后重新pod install。问题解决。

相关文章

网友评论

      本文标题:解决在使用cocoapods后链接framework报错问题

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