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 Objective-C Basics (Retired) Introduction to Objective-C Syntax Overview

Andrew Greene
Andrew Greene
415 Points

Getting Mach-O Linker error

I cannot get the code to work. Please help. Here is the error: \Ld /Users/andrewgreene/Library/Developer/Xcode/DerivedData/MyFirstObjectiveCProgram-fxhbfddyslwpnvcafdcsudcifatw/Build/Products/Debug/MyFirstObjectiveCProgram.app/Contents/MacOS/MyFirstObjectiveCProgram normal x86_64 cd "/Users/andrewgreene/Documents/Objective-C Course/Development/sphere class/MyFirstObjectiveCProgram" /Developer/usr/bin/clang -arch x86_64 -L/Users/andrewgreene/Library/Developer/Xcode/DerivedData/MyFirstObjectiveCProgram-fxhbfddyslwpnvcafdcsudcifatw/Build/Products/Debug -F/Users/andrewgreene/Library/Developer/Xcode/DerivedData/MyFirstObjectiveCProgram-fxhbfddyslwpnvcafdcsudcifatw/Build/Products/Debug -filelist /Users/andrewgreene/Library/Developer/Xcode/DerivedData/MyFirstObjectiveCProgram-fxhbfddyslwpnvcafdcsudcifatw/Build/Intermediates/MyFirstObjectiveCProgram.build/Debug/MyFirstObjectiveCProgram.build/Objects-normal/x86_64/MyFirstObjectiveCProgram.LinkFileList -fobjc-arc -framework Cocoa -o /Users/andrewgreene/Library/Developer/Xcode/DerivedData/MyFirstObjectiveCProgram-fxhbfddyslwpnvcafdcsudcifatw/Build/Products/Debug/MyFirstObjectiveCProgram.app/Contents/MacOS/MyFirstObjectiveCProgram

ld: file not found: /Developer/usr/lib/arc/libarclite_macosx.a Command /Developer/usr/bin/clang failed with exit code 1

By the way, I am using Snow Leopard 10.6.8 and Xcode 4.2 as I cannot upgrade my Mac at this time. Does this mean that Snow Leopard cannot use ARC? And if so, I can't go any further in this course? Or can I use an older version of Xcode?

Thanks, Andrew

1 Answer

Andrew Greene
Andrew Greene
415 Points

Thanks, Guillaume. I will try this out.