1. 程式人生 > >Swift 3.0 第三方庫不適配報(SWIFT_VERSION)問題

Swift 3.0 第三方庫不適配報(SWIFT_VERSION)問題

Swift 3.0 第三方庫不適配問題

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.

1.點選專案中的Pods。
2.選中你的第三方框架。
3.選中Build Settings,然後在右邊搜尋框輸入:swift
4.找到Swift Compoiler - Version 下的 Use Legacy Swift Language Version:把後面的改成NO即可

這裡寫圖片描述

再次編譯就OK了