美文网首页
target has transitive dependenci

target has transitive dependenci

作者: 只会ctrl_c_v | 来源:发表于2020-06-16 16:33 被阅读0次

pod install 报以下错

[!] The 'Pods-XXX' target has transitive dependencies that include statically linked binaries: (/Users/...)

属于以下情况:

一、是否为Swift环境
二、podfile中有使用到 use_frameworks!
三、pod 第三方 :podspec =>=".....podspec"

解决办法:

在 podspec文件中添加 s.static_framework = true

特别提示:

如果使用的线上的 podspec文件(文件没有 s.static_framework = true), 可自己在本地创建一份 podspec文件, 然后把线上的 podspec 的内容复制进去,再添加 s.static_framework = true。
记住,:podspec的路径需要改成本地的,这个缺点就是,更新需要看线上版本修改内容。

相关文章

网友评论

      本文标题:target has transitive dependenci

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