美文网首页
Xcode 8.0 使用cocoa pod管理第三方库遇到的问题

Xcode 8.0 使用cocoa pod管理第三方库遇到的问题

作者: 一个奋斗中的人_Andy | 来源:发表于2016-09-19 15:41 被阅读176次

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

看到了几篇都找不到解决方法,最后在国外的网站上看到了一个解决方法是:

在Podfile上添加:

post_install do |installer|

installer.pods_project.targets.each do |target|

target.build_configurations.each do |config|

config.build_settings['SWIFT_VERSION'] = '3.0'

end

end

end

然后就pod update 下就可以编译了。

国内的解决方案:http://blog.csdn.net/u012847940/article/details/52229485(按照个人的情况来选择。)

相关文章

网友评论

      本文标题:Xcode 8.0 使用cocoa pod管理第三方库遇到的问题

      本文链接:https://www.haomeiwen.com/subject/awknettx.html