pod install 报红色警报:Could not automatically select an Xcode workspace. Specify one in your Podfile ...

报错

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有风险 慎用!慎用!慎用!

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容