热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

“无法确定以下Pod的Swift版本”错误

我正在尝试安装pod'SVProgressHUD'可可豆荚,但是在安装豆荚文件时出现以

我正在尝试安装pod 'SVProgressHUD'可可豆荚,但是在安装豆荚文件时出现以下错误。

[!] Unable to determine Swift version for the following pods:
- `HexColors` does not specify a Swift version and none of the targets (`FaveoHelpdeskPro_ObjC`) 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.

“无法确定以下Pod的Swift版本”-错误

如何解决此问题?



尝试通过包含以下内容来设置Swift版本

ENV['SWIFT_VERSION'] = '5'位于Podfile的顶部。

,

那是因为你的项目很老,从来没有在项目中设置过Swift版本。
尝试在项目中创建一个新的 swift 文件。 Xcode 将在项目构建设置中自动设置 Swift 版本。然后你再pod install就可以解决了。


推荐阅读
author-avatar
这辈子没有你
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有