Welcome to the Treehouse Community
Looking to learn something new?
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?
Stephen Welgemoed969 Points
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.