问题
I was working on my application and i started out with a really bad name. So i decided to change it. I did that like this.

At the top right corner i simply changed the name to what i want. and then i started getting the error as you can see there. Reveal in Log shows these details:

The main error says:
ld: file not found: /Users/.../XCode/DerivedData/...
回答1:
Go to edit scheme as shown below.

then uncheck all other targets except your main target under build tab.

回答2:
I recently got this error under different circumstances. Running Ionic, updating my ios platform from 3.8.0 to 4.0.1 I discovered this error.
I had to disable bitcode in my app.
To do this, click your top level app icon in the file structure. In the main window, click the header build settings. In the search bar, type bit (or bitcode) and you should see enable bit code beneath
I had disabled it before, but I'm guessing that updating the ios platform enables bitcode so it needed to be disabled again.
回答3:
No need to mess with schemes. Just go to build settings for your targets or project and turn off Bitcode.
回答4:
I resolved this by Deleting the Derived Data and rebuilding the project.
- Go to Windows > Projects
- Select Your Project
- Delete Derived Data
- Build your project and Run
回答5:
If you see this error without detail result then check 'enum' in header file. Move them in .m file.
回答6:
By deleting the derived data Xcode will recompile and regenerate the data for you.
You can do that by going to: Windows -> projects Delete derived data
来源:https://stackoverflow.com/questions/29182257/ld-file-not-found-after-changing-product-name-in-xcode