某个情况下,执行 pod install 报错:
[!] Unable to determine Swift version for the following pods:
-
xxxdoes not specify a Swift version and none of the targets (Runner) integrating it have theSWIFT_VERSIONattribute set. Please contact the author or set theSWIFT_VERSIONattribute in at least one of the targets that integrate this pod. -
xxxdoes not specify a Swift version and none of the targets (Runner) integrating it have theSWIFT_VERSIONattribute set. Please contact the author or set theSWIFT_VERSIONattribute 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