ios 我想在 Xcode 6.3 中更改我的包标识符以及产品名称
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31786155/
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
I want to change my bundle identifier as well as product name in Xcode 6.3
提问by Asad ali
I have completed project but unfortunately, I have to change product name and bundle identifier also, in Xcode 6.4. How can I do this?
我已经完成了项目,但不幸的是,我还必须在 Xcode 6.4 中更改产品名称和包标识符。我怎样才能做到这一点?
回答by Rich
Change the value of Product Name(referenced as PRODUCT_NAME
) in the build settings of the project or target.
在项目或目标的构建设置中更改产品名称(引用为PRODUCT_NAME
)的值。
Both the Bundle identifierand Bundle namein your info plist reference this build setting, so changing it here updates both these values. I personally wouldn't change the Bundle identifierin the plist directly as it has a strict set of allowed characters and you can see from peoples examples it adds the rfc1034identifier
to the setting reference which converts any invalid characters.
信息 plist 中的Bundle identifier和Bundle name都引用了此构建设置,因此在此处更改它会更新这两个值。我个人不会直接更改plist 中的Bundle 标识符,因为它有一组严格的允许字符,您可以从人们的示例中看到它添加rfc1034identifier
到设置引用中,该引用转换任何无效字符。
The default value ($TARGET_NAME
) uses the name of the target in the left side panel, so you could also change this name.
默认值 ( $TARGET_NAME
) 使用左侧面板中的目标名称,因此您也可以更改此名称。
回答by soumya
You can set "Product Name" Xcode Build Settings. You want to set your bundle identifier in the info.plist file for your app.
您可以设置“产品名称”Xcode 构建设置。你想在 info.plist 文件中为你的应用设置你的包标识符。
The bundle identifier in the Info.plist as ${PRODUCT_NAME} - You can change app bundle name here
Info.plist 中的包标识符为 ${PRODUCT_NAME} - 您可以在此处更改应用包名称
回答by JRK
Just add another one to this, using XCode 10.1. Even when I updated the product name, bundle identifier etc - it still was showing as the old name.
只需添加另一个,使用XCode 10.1。即使我更新了产品名称、捆绑标识符等 - 它仍然显示为旧名称。
There is a window to the side (I assume this is default as I've not actually changed anything) - with a Identity and Type with a field called 'name' also change this. Screen shot below:
旁边有一个窗口(我假设这是默认值,因为我实际上没有更改任何内容)-带有一个名为“name”的字段的 Identity 和 Type 也会改变它。屏幕截图如下:
回答by Paddy
You can change the name by updating Info.plist file, there is a field Bundle Name
that is your application name.
For Bundle Identifier
you can change it through the developer account add new bundle identifier for your project. Or just change the Bundle Identifier
in your project Info.plist file the x-Code will handle it.
您可以通过更新 Info.plist 文件来更改名称,其中有一个字段Bundle Name
是您的应用程序名称。因为Bundle Identifier
您可以通过开发者帐户为您的项目添加新的包标识符来更改它。或者只是Bundle Identifier
在您的项目 Info.plist 文件中更改x-Code 将处理它。
回答by Munahil
Go to your Project > Target > Info . Inside Custom Target iOS Properties
go to Bundle Name
, Bundle identifier
and Bundle display name
from there. You can also refer to this answerfor further explanation.
转到您的项目 > 目标 > 信息。里面Custom Target iOS Properties
去Bundle Name
,Bundle identifier
然后Bundle display name
从那里。您也可以参考此答案以获取进一步说明。