OC项目使用pod集成一个Swift库时报错:
[!] Unable to determine Swift version for the following pods:
Pod33
does not specify a Swift version and none of the targets (TestBundle
) integrating it have theSWIFT_VERSION
attribute set. Please contact the author or set theSWIFT_VERSION
attribute in at least one of the targets that integrate this pod.
这个解释是说需要在OC项目中设置Swift版本。
Build Settings -》 点击+号,添加“Add User-Defined setting” -> 将新添加的设置命名为“ SWIFT_VERSION” -》设置值为5.0

网友评论