pod install 报错 [!] Unable to determine Swift version for the following pods:

某个情况下,执行 pod install 报错:
[!] Unable to determine Swift version for the following pods:

  • xxx does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
  • xxx does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

解决办法:在Xcode 项目build-setting 里面的User-Defined 添加 SWIFT_VERSION key 5.0(具体的key根据你使用的swift版本填写)如下图:


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

推荐阅读更多精彩内容