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

“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(按照个人的情况来选择。)

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容