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

项目中的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报错问题)