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

s t
s t
2,699 Points

Build simple iphone app ios - updating xcode and swift version

trying to deploy app on my iphone 6 plus. xcode version and iphone version were not compatible so downloaded newest xcode. Now getting this error

" 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"

In build settings, it is currently set to Unspecified with 2 options to choose from: Swift 3.2 Swift 4.0

If I select either of the above options I get a huge amount of errors and build failed note. Can anyone help?

2 Answers

s t
s t
2,699 Points

Hi!

I have figured it out, somehow! I updated everything and it seems to work now.

Thanks,

Alphonso Sensley II
Alphonso Sensley II
8,514 Points

What version of Xcode was the project app originally creating in?? If you’re seeing Swift 4 as an option I’m assuming you have Xcode 9. If the code you’re trying to deploy was created in anything earlier than Xcode 8 that would be the reason your seeing multiple errors. Or maybe the app is in objective C?