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 trial

iOS Build a Vending Machine App in Swift Loading Data From a Resource Finishing Touches

Dan Lee
Dan Lee
1,732 Points

I get an error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0.

Is the video updated for the current Swift version?

Kareem Jeiroudi
Kareem Jeiroudi
14,984 Points

Have you managed to migrate from Swift 3.0 to 4.0 or something? Because I'm having the same issue, and I was wondering if you managed to resolve it.

1 Answer

Kareem Jeiroudi
Kareem Jeiroudi
14,984 Points

I have just resolved the issue, and I hope that you have too. In case not, try to use Apple's Migration Guide to resolve this issue. In case you're still facing some issues after going through this guide (which I did) such as the assistant not making any migration suggestions, try modifying the following file either in Xcode or via

vim VendingMachine.xcodeproj/project.pbxproj

as described in this StackOverflow answer.

Hope that helps πŸ˜‰πŸ‘!