'ld: file not found' after changing produc

2019-03-15 13:56发布

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.

enter image description here

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:

enter image description here

The main error says:

ld: file not found: /Users/.../XCode/DerivedData/...

6条回答
叼着烟拽天下
2楼-- · 2019-03-15 14:33

Go to edit scheme as shown below. enter image description here

then uncheck all other targets except your main target under build tab. enter image description here

查看更多
叼着烟拽天下
3楼-- · 2019-03-15 14:33

I resolved this by Deleting the Derived Data and rebuilding the project.

  1. Go to Windows > Projects
  2. Select Your Project
  3. Delete Derived Data
  4. Build your project and Run
查看更多
男人必须洒脱
4楼-- · 2019-03-15 14:35

If you see this error without detail result then check 'enum' in header file. Move them in .m file.

查看更多
The star\"
5楼-- · 2019-03-15 14:35

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

查看更多
萌系小妹纸
6楼-- · 2019-03-15 14:42

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.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-03-15 14:43

No need to mess with schemes. Just go to build settings for your targets or project and turn off Bitcode.

enter image description here

查看更多
登录 后发表回答