简体   繁体   English

我想在Xcode 6.3中更改我的捆绑包标识符以及产品名称

[英]I want to change my bundle identifier as well as product name in Xcode 6.3

I have completed project but unfortunately, I have to change product name and bundle identifier also, in Xcode 6.4. 我已经完成了项目,但不幸的是,我还必须在Xcode 6.4中更改产品名称和捆绑包标识符。 How can I do this? 我怎样才能做到这一点?

Change the value of Product Name (referenced as PRODUCT_NAME ) in the build settings of the project or target. 在项目或目标的构建设置中更改产品名称的值(称为PRODUCT_NAME )。

屏幕截图

Both the Bundle identifier and Bundle name in your info plist reference this build setting, so changing it here updates both these values. 信息plist中的Bundle标识符Bundle名称都引用此构建设置,因此在此处更改它会更新这两个值。 I personally wouldn't change the Bundle identifier in 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标识符 ,因为它具有严格的允许字符集,并且您可以从人的示例中看到,它在设置引用中添加了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 )使用左侧面板中目标的名称,因此您也可以更改此名称。

You can set "Product Name" Xcode Build Settings. 您可以设置“产品名称” Xcode Build Settings。 You want to set your bundle identifier in the info.plist file for your app. 您想要在应用程序的info.plist文件中设置捆绑包标识符。

The bundle identifier in the Info.plist as ${PRODUCT_NAME} - You can change app bundle name here Info.plist中的捆绑包标识符为$ {PRODUCT_NAME}-您可以在此处更改应用捆绑包名称

在此处输入图片说明

Just add another one to this, using XCode 10.1 . 只需使用XCode 10.1向其中添加另一个即可。 Even when I updated the product name, bundle identifier etc - it still was showing as the old name. 即使我更新了产品名称,捆绑商品标识符等,它仍然显示为旧名称。

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. 侧面有一个窗口(我假设这是默认设置,因为我实际上并未更改任何内容)-具有名为“名称”的字段的Identity和Type也可以更改此设置。 Screen shot below: 屏幕截图如下:

在此处输入图片说明

Go to your Project > Target > Info . 转到项目>目标>信息。 Inside Custom Target iOS Properties go to Bundle Name , Bundle identifier and Bundle display name from there. 在“ Custom Target iOS Properties ,从此处转到“ Bundle Name ,“ Bundle identifier和“ Bundle display name You can also refer to this answer for further explanation. 您也可以参考此答案以获取更多说明。

You can change the name by updating Info.plist file, there is a field Bundle Name that is your application name. 您可以通过更新Info.plist文件来更改名称,其中字段Bundle Name是应用程序名称。 For Bundle Identifier you can change it through the developer account add new bundle identifier for your project. 对于Bundle Identifier您可以通过开发人员帐户进行更改,为您的项目添加新的捆绑包标识符。 Or just change the Bundle Identifier in your project Info.plist file the x-Code will handle it. 或只更改项目Info.plist文件中的Bundle Identifier ,x代码即可处理它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM