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!

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 problem


I'm working on the Introduction to Objective-C track, and I have an error in the Structs to Objects project. I wrote down the code correctly, but I am getting a linker error. When I compile/build the project, I get this error:

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 couldn't find the answer on stackedoverflow. Anyone have any ideas?

1 Answer

Stephen Welgemoed
Stephen Welgemoed
969 Points

Hi Patrick

I suspect you may be targeting an older version of iOS which does not support ARC. You can either target a newer version of iOS or you can disable ARC for your project and use MRC instead.

Hope this helps with your problem.