在簡(jiǎn)書寫文章,配圖很重要,祭出大招
在使用Xcode8開發(fā)蕉扮,并設(shè)置語言為Swift3.0之后整胃,Cocopods里面的第三方框架全都炸鍋了,會(huì)看到下面的錯(cuò)誤喳钟。
jianshu047.png
“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.
jianshu041.png
你可以向如上圖片一樣配置項(xiàng)目屁使,當(dāng)然假如你使用Cocopods管理第三方框架,你可以利用stackoverflow上的另一種方法來解決
在podfile文件最下面添加如下代碼奔则,然后重新pod install 問題就解決了
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
jianshu005.png
最后希望能夠解決大家的問題