我正在尝试安装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.
如何解决此问题?
发布于 2019-11-10 06:37:51
尝试通过包含以下内容设置Swift版本
ENV['SWIFT_VERSION'] = '5'
在您的Podfile的顶部。
发布于 2021-04-24 18:17:54
这是因为您的项目非常旧,并且从未在项目中设置Swift版本。尝试在项目中创建一个新的swift文件。Xcode将在项目构建设置中自动设置Swift版本。然后你可以再次pod install
,它将会被解决。
https://stackoverflow.com/questions/58691345
复制相似问题