在Xcode中更改产品名称后,"ld:文件未找到" [英] 'ld: file not found' after changing product name in Xcode

查看:127
本文介绍了在Xcode中更改产品名称后,"ld:文件未找到"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理我的应用程序,但我最初的名字很不好.所以我决定改变它.我是那样做的.

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:

主要错误是:

ld:找不到文件:/Users/.../XCode/DerivedData/...

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

推荐答案

转到如下所示的编辑方案.

Go to edit scheme as shown below.

然后在构建选项卡下取消选中除主要目标以外的所有其他目标.

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

这篇关于在Xcode中更改产品名称后,"ld:文件未找到"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆