如何更改Xcode项目中的产品名称? [英] How do I change the product name within an Xcode project?

查看:93
本文介绍了如何更改Xcode项目中的产品名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我想称为IFrames的应用程序。我已经适当地命名了所有文件(IFramesAppDelegate等),但是当我在ad hoc模式下运行时,它会显示名称为photoframes。

I have an application that I would like to be called IFrames. I've named all of the files appropriately (IFramesAppDelegate, etc.), but when I run it in ad hoc mode it shows up with the name "photoframes" instead.

这是如何发生的,如何更改产品名称以匹配我为项目提供的名称?

How did this happen and how do I change the name of the product to match the name I've provided for the project?

推荐答案

不要在项目级别设置产品名称,因为您的项目可以构建多个不同的应用程序。例如,在iPhone / iPod touch应用程序上,以及来自相同来源的另一个iPad应用程序。

Do not set the product name on the project level, since your project can build several different applications. For example on iPhone/iPod touch app, and another iPad app fromt he same sources.

而是在目标上设置产品名称。在集团中找到目标& Xcode中的Files列。并从上下文中选择获取信息,或使用cmd-I快捷方式。

Instead set the product name on the Target. Find the Target in the Group & Files column in Xcode. And select "Get Info" from the context meny, or use the cmd-I shortcut.

在信息窗口中,转到构建选项卡。确保Configuration配置为All Configurations,因为您希望Debug和Release版本具有相同的名称。使用产品名称过滤您的选项以快速找到该选项,然后输入。

In the Info window go to the build tab. Make sure Configuration is set to "All Configurations", since you want the same name for Debug and Release builds. Filter down your options with "product name" to find the option fast, and type away.

这篇关于如何更改Xcode项目中的产品名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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