'ld: file not found' after changing product name in Xcode

杀马特。学长 韩版系。学妹 提交于 2019-12-03 03:42:56

Go to edit scheme as shown below.

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

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.

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

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

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!