nts nts - 5 months ago 30
iOS Question

Compiler error after adding a new Configuration in project

I encountered an issue after setting up a new value for Configuration when building (after reading the following post: Different App Icons for your iOS Beta, Dev, and Release builds). The error message is as follows:

ld: file not found:

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

I'm not sure how to fix it, checked and double checked with the article and I did follow everything as explained.

Edit: The error appears to be from the Tests target

nts nts

Managed to find the answer: http://stackoverflow.com/a/29887473/2124535

I solved it in Xcode 6 very easy like this:

  1. Select your project in the project navigator.
  2. Select the YourProjectTests under targets
  3. Under General tab change the Host Application from the drop down
  4. Build and run.

This problem happened to me because I renamed my project and the tests could't find it anymore. - Yowza7