简体   繁体   English

如何更改xcode中的包标识符

[英]How to change the bundle identifier in xcode

I want to publish my app on iTunes.When i enter the app name and bundle id it shows an error that app name and app id is already benn used.I searched on it and only solution i got is to change tha app name and bundle id. 我想在iTunes上发布我的应用程序。当我输入应用程序名称和包ID时,它显示错误,即应用程序名称和应用程序ID已经被使用过。我搜索了它,我得到的唯一解决方案是更改应用程序名称和包ID。 But the app id should be the same as bundle identifier in our xcode project.So can anyone tell me how to change the bundle identifer in the xcode project. 但是应用程序ID应该与我们的xcode项目中的包标识符相同。所以任何人都可以告诉我如何更改xcode项目中的包标识符。

Goto the settings of your app target. 转到应用目标的设置。 Under general section you can change your bundle identifier. 在常规部分,您可以更改捆绑标识符。 Usually bundle identifier goes like com.companyID.appName 通常,bundle标识符与com.companyID.appName类似

在此输入图像描述

Try to change in your app target -> General -> Identity -> Bundle Identifier. 尝试更改您的应用目标 - >常规 - >身份 - >捆绑标识符。

But if app name is written in gray color there then it is likely because you have a product name variable, something like .${PRODUCT_NAME:rfc1034identifier}, appended to the end of your bundle identifier under Target (your application) > Info (info.plist). 但是如果应用程序名称是用灰色写的,那么很可能是因为你有一个产品名称变量,比如。$ {PRODUCT_NAME:rfc1034identifier},附加到目标(你的应用程序)下的包标识符的末尾>信息(信息)的.plist)。 Try removing that. 尝试删除它。

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

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