Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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.