Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rich1812

macrumors regular
Original poster
Oct 4, 2015
117
5
earth
Hello, I downloaded a xCode project, I believe it was done in xcode 8.x. Swift 2.x.. I opened it in the latest xCode 10.1. When I open the project, I had a bunch errors and warnings. I managed to fix them except 2 errors, -

Showing All Messages

Build system information

error: Value for SWIFT_VERSION cannot be empty.

How can I fix this? Thanks.
 
Go to the Projects or Targets Build Settings.
Scroll down to "Swift Compiler - Language" setting
And then select the Swift Language Version your Project or Target is using.

I believe you can have "Unspecified" Selected for the Project setting.
But must select a Swift Version number for the Target.

Make sure your code source files contain the Swift syntax that matches your Language Version Setting.

Regards Mark
 
"Go to the Projects or Targets Build Settings."
Where is this Projects or Targets Build Settings?attached is an image of the project, I don't see anywhere to change the swift version.
 

Attachments

  • xcode.png
    xcode.png
    341.5 KB · Views: 239
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.