Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9: Swift dependency analysis error

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:

"Dependency Analysis Error > The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor."

Screenshot added

When I go to build settings there isn't any possibility to set a version for Swift language. Does this represent a bug? Furthermore the app itself doesn't use Swift, only the automated UI_tests.

like image 703
renraku Avatar asked Jul 13 '17 11:07

renraku


1 Answers

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 :)

enter image description here

like image 116
Norolim Avatar answered Nov 12 '22 01:11

Norolim