Link error /Build/Products/Debug-iphonesimulator file not found

Crazy picture Crazy · Aug 10, 2013 · Viewed 27.9k times · Source

I have problem with Xcode, keeps giving me a linker error, and it doesn't build the project. The following is the error am getting

ld: file not found: /Users/someuser/Library/Developer/Xcode/DerivedData/MAR-akbwbarcniqxytctbebckkelkbxs/Build/Products/Debug-iphonesimulator/MAR.app/MAR

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

Answer

atitpatel picture atitpatel · May 24, 2018

As some of the fellow developers have mentioned here, the root cause of the error was "Change in Product Name". I fixed it by :

  1. Go to [project]Tests -> general

  2. Select Host Application

    enter image description here

Credits : https://stackoverflow.com/a/28906400/2164029