捆绑名称,可执行名称,产品名称......还有其他什么? [英] Bundle Name, Executable Name, Product Name...anything else?

查看:195
本文介绍了捆绑名称,可执行名称,产品名称......还有其他什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

捆绑名称,可执行文件名称,产品名称......更多??

Bundle Name, Executable Name, Product Name... any more??

有人可以帮助澄清在iPhone项目中使用Xcode中的每一个?它们从来都不能混淆生活bajezus了我......和Im疲倦让他们错了。

can someone please help clarify the use of each of these in Xcode on an iPhone project? They never fail to confuse the living bajezus out of me...and Im tired of getting them wrong.

有人请解释...到底为什么我们需要这个一个应用程序环境的许多不同的命名方案?什么我用每一种的,所以我可以在我的脑海坚持他们在正确的舒适的地方?

Someone please explain... why the hell do we need this many different naming schemes for one app environment? and what do I use each of these for so I can stick them in the right cubby hole in my head?

推荐答案

如果您看一个Info.plist,它是这样的:

If you look at an info.plist, it goes something like this:

Bundle Display Name - ${PRODUCT_NAME}
Executable File - ${EXECUTABLE_NAME}
Bundle Name - ${PRODUCT_NAME}

所以,你可以看到,通常PRODUCT_NAME会为捆绑包提供相同的名称以及用户看到的内容。

So you can see, that normally PRODUCT_NAME gives you the same name for the bundle and what the user sees.

在某些情况下,您可能需要更复杂的显示名称,不适合命名像捆绑或可执行文件这样的东西,这就是你可以独立改变它们的原因 - 但你不必这样做。 PRODUCT_NAME的默认名称与项目名称相同,但您也可以在构建设置中覆盖它。

In some cases you may want a more complex display name that is not suitable for naming things like bundles or executables, which is why you can change them independently - but you don't have to. The default it that PRODUCT_NAME is the same name as the project name, but you can also override it in the build settings.

您不应该改变它们的方式在info.plist中设置,除非您有充分的理由......只需更改PRODUCT_NAME。

You shouldn't be changing the way they are set up in info.plist, unless you have a very good reason... just change PRODUCT_NAME.

这篇关于捆绑名称,可执行名称,产品名称......还有其他什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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