Swift

Christopher Eadie
Christopher Eadie
7,039 Points

Vending Machine app - files are too old

I have downloaded the files for this app and they are Swift version 3.0 and Xcode does not like them. I have been able to migrate part of it but am still getting build errors ("SWIFT VERSION 3.0 is unsupported..."). Does anyone know how to fix this this?

1 Answer

Waylan Sands
PRO
Waylan Sands
Pro Student 4,833 Points

In xcode select the main (top) file in the left column which contains all the project files. In the next column make sure you select the file under Targets. Then on the menu bar in the middle section select build settings. Look down through the options to Swift compiler - Language and change the version to 5