I have an iOS-app written in obj-C and UI-tests for the app in Swift. I recently installed Xcode 9 beta 2 and wanted to compile the app. I get the following error:
<
It tells that you need to specify the swift version in Build Settings. Just click project and go to Build settings (not the target) and set "Swift Language Version" to Swift 3.2 or Swift 4. Here you have an screenshot :)
First of all I would recommend you to use stable version of Xcode since beta may contain bugs. Xcode 9.2 version is available. You can download XIP file from this link.
You can resolve this error by using below steps :
Swift 3.2
or Swift 4.0
depending on your requirement.cmd + shift + k
)build without an error
If you still get the same error then use below steps :
cmd + Q
)cmd + shift + k
)