“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.只更新app和tests uitests
2.把所有库更新到最新
如果遇见
module file was created by a newer version of the compiler:
1.clean
2.alt+clean clean build folder