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 Build a Simple iPhone App with Swift Debugging Our App Exception Breakpoints

Andrew Giese
Andrew Giese
2,925 Points

Error in build

When compiling to run app I get the following message.

ld: file not found: /Users/MistahMarmalade/Library/Developer/Xcode/DerivedData/angryMotivation-dieolquomvfpuecptquolybrtbpl/Build/Products/Debug-iphonesimulator/funFacts.app/funFacts

Andrew Giese
Andrew Giese
2,925 Points

followed by:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 Answer

Holger Liesegang
Holger Liesegang
50,595 Points

Hi Andrew!

Did you try "Product-->Clean" and then rebuild your project?

In case you renamed your product this will help: http://stackoverflow.com/questions/26665196/ld-file-not-found-linker-command-failed-with-exit-code-1-use-v-to-see-invoca

("...The problem is that after renaming the product its Tests target is still looking for the previous app name....")

Andrew Giese
Andrew Giese
2,925 Points

Thank you so much! That solved it!