XCode 4:存档使用旧项目名称

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7460868/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 21:57:54  来源:igfitidea点击:

XCode 4: Archive is using old project name

xcoderenamearchiveorganizer

提问by P i

I have renamed my project successfully.

我已成功重命名我的项目。

However, when I create an archive (I'm ready to upload it to the store), Organizer is showing the archive named with the OLD project name.

但是,当我创建档案(我准备将其上传到商店)时,Organizer 会显示以 OLD 项目名称命名的档案。

In fact I have renamed this project twice! And it is showing the original name.

事实上,我已经两次重命名了这个项目!它显示了原始名称。

I don't know if this is going to trip me up, but it is annoying. Where is this name determined?

我不知道这是否会让我绊倒,但这很烦人。这个名字是在哪里确定的?

In my info.plist everything is using the default values, and in my target's build settings Product Name is correctly set.

在我的 info.plist 中,一切都使用默认值,并且在我的目标的构建设置中,产品名称设置正确。

I can't see anywhere else this old name might be lurking. Cleaning the project and restarting Xcode doesn't do a thing.

我看不到这个旧名字可能潜伏在其他任何地方。清理项目并重新启动 Xcode 没有任何作用。

How can I correct this?

我该如何纠正?

PS XCode 4.0.2

PS XCode 4.0.2

回答by Sihad Begovic

Go to Product -> Scheme -> Edit Scheme in the list on the left select Archive and you will get a form with text box Archive Name where you can make your change.

转到左侧列表中的产品 -> 方案 -> 编辑方案,选择存档,您将获得一个带有文本框存档名称的表单,您可以在其中进行更改。

This works for Xcode 4.6 + for sure.

这肯定适用于 Xcode 4.6 +。

回答by P i

EDIT: Out of date!

编辑:过时了!

It seems that the scheme doesn't get renamed when the project gets renamed.

当项目重命名时,该方案似乎没有重命名。

I guess this is one of the low priority things on the Xcode team's to do list...

我想这是 Xcode 团队待办事项列表中的低优先级事项之一...

Anyway, just needed to rename the scheme

无论如何,只需要重命名方案

回答by Heider Sati

The answer is fine, it's just not obvious on Xcode,

答案很好,只是在 Xcode 上不明显,

1) To edit your scheme, use Product -> Scheme -> Manage Schemes, once there, you will see the list, I know; there is no "edit" for the name as such, however, click on your scheme name twice (slow click), the name will allow you to edit it and change it.

1) 要编辑您的方案,请使用 Product -> Scheme -> Manage Schemes,一旦出现,您将看到列表,我知道;名称本身没有“编辑”功能,但是,单击您的方案名称两次(缓慢单击),该名称将允许您对其进行编辑和更改。

2) To edit your Archive name (i.e. the name that appear under the scheme when you archive on Organiser), use Product -> Scheme -> Edit Scheme -> Goto Archive (left menu) -> and then enter what you like in the Archive Name.

2) 要编辑您的档案名称(即您在 Organiser 上存档时出现在方案下方的名称),请使用 Product -> Scheme -> Edit Scheme -> Goto Archive(左侧菜单)-> 然后在存档名称。

I hope that help, the above answers are correct, just wanted to share the exact steps on how to edit, as I had one of those moments myself for not seeing an EDIT button there...

我希望有所帮助,上述答案是正确的,只是想分享有关如何编辑的确切步骤,因为我自己也有过这样的时刻,因为那里没有看到“编辑”按钮...

Regards

问候

Heider

海德