pod install 报红色警报:Could not auto

2021-02-20  本文已影响0人  灰溜溜的小王子
报错

1.一个workspace文件管理多个framework
2.一个podfile管理framework库的依赖.
Could not automatically select an Xcode workspace. Specify one in your Podfile like so: workspace 'path/to/Workspace.xcworkspace'

原因:

不能自动定位一个workspace文件的位置

解决方案:

target上方添加 :workspace 'Demo.xcworkspace' 指定一个xcworkspace的路径,注意:根据自己workspace文件位置确定相应路径

警告:The Podfile contains framework or static library targets (TwoLin, OneLib), for which the Podfile does not contain host targets (targets which embed the framework)

解决方案在podfile文件中添加
install! 'cocoapods',
:integrate_targets => false 默认为true 改为false有风险 慎用!慎用!慎用!

上一篇 下一篇

猜你喜欢

热点阅读