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

Xcode Clang Error

Working on the objective-c track, and when attempting to compile the end code base for Stage 1 (From Structs to Objects), I get the following Xcode error preventing the build from completing:

error: -fobjc-arc is not supported on platforms using the legacy runtime

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I did a google search on the error but returned nothing useful. The obvious is that I need to be using the 'modern' objective-c runtime and not the legacy runtime but I'm unclear on how to go about this update.

1 Answer

Simply upgrading to Xcode 5 fixed this.