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

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


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


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.


I got this fixed by selecting the Tests target and searching for Bundle Loader in Build Settings and changing the product name in that path. I got this error because I have changed the Product name. The Bundle loader has the old product name in the path, so it searches for that path.