Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChristopher Eadie
7,039 PointsVending 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
Courses Plus Student 5,824 PointsIn 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