Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)

like image 729
Crazy Avatar asked Aug 10 '13 19:08

Crazy


2 Answers

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

like image 124
atitpatel Avatar answered Sep 22 '22 18:09

atitpatel


I picked up a project that had this same error. I found that the project name had changed, but the code I had did not reflect that change in the project build settings. To correct, I updated the "Product Name" value (found under targets | Packaging) to the correct value and rebuilt the project. Ran fine.

like image 39
iDurocher Avatar answered Sep 19 '22 18:09

iDurocher