如何正确重命名 XCode 6 产品名称和捆绑包 [英] How to properly rename XCode 6 product name and bundles

查看:29
本文介绍了如何正确重命名 XCode 6 产品名称和捆绑包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常不知道我正在构建的应用程序的最终名称,所以我首先创建一个带有内部名称的 Xcode 6 项目 - 例如Hercules"或其他名称.

I usually do not know the final name of the app I am building, so I start by creating an Xcode 6 project with a internal name - like "Hercules" or something.

现在我已准备好分发到应用商店,我需要重命名我的项目和两个目标(iOS、Mac)包名称和标识符.

Now that I am ready to distribute to the app store I need to rename my project and the two targets (iOS, Mac) bundle name and identifiers.

虽然我设法做到了这一点,但我有一个无法运行、构建或执行任何操作的项目(一切都变灰了).

While I managed to do this, I have a project that cannot run, build, or anything (everything is grayed out).

我需要的正确方法是什么?

What is the proper way to do I need?

推荐答案

可能没有最佳"答案,因为每个团队都希望以不同的方式处理这种情况.您可以修复由更改名称引起的构建问题(在这种情况下您有您的解决方案)或恢复到代号下的项目的可构建版本并更改目标的 info.plist 中的捆绑显示名称".

There probably is no "best" answer as each team will want to handle the situation differently. You can either fix the build problems caused by changing the names (in which case you have your solution) or revert back to a buildable version of your project under the codename and change the "bundle display name" in the info.plist for the targets.

这篇关于如何正确重命名 XCode 6 产品名称和捆绑包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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