Since there are two target in a project, it is called Target A and target B! After the project name has been changed, the following error is reported when running in the emulator:
Ld:file not found:/users/hx/library/developer/xcode/deriveddata/build/products/debug-iphonesimulator/yq_hx.app/ Yq_hx
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
The Internet has turned over and over, some say the project name is different, we suggest to change the project name according to the following path ,
Build Setting----"Product Name---
But I checked my project and found out that the project name was no problem. Then continue to find solutions ...
Here's another solution:
Xcode/build settings/packaging/private Headers Folder path and product Module name under name change to your project name.
After inspecting the project, I found that my one was right. Continue to find solutions ...
After several twists and turns, it was discovered that the project's target a and target B managed to confuse the problem. Press the path below
Product-> scheme-> Manage Schemes ...
Open the Schemes Admin panel, then delete the deleted, associate the associated, and the problem is resolved.
Your problem maybe the first two solutions can help you solve, mine is a project after changing the name of the project target A and target B management problems, if you are also a project multiple target under the problem I said, patient reading may help you solve the problem.
File not found:/users/hx/library/developer/xcode/deriveddata/build/products/...