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)
As some of the fellow developers have mentioned here, the root cause of the error was "Change in Product Name". I fixed it by :
Go to [project]Tests -> general
Select Host Application
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With