ios xcode如何修改应用的名称

ios xcode如何修改应用的名称 node

当你建立一个project时,会要求你输入product name & company identifier这两个property的值should和你在apple developer member center的“Provisioning Portal”的“App IDs"里建立的bundle identifier (NOT App ID)匹配!若是不匹配的话,push notification feature和cloud feature则不成功!!ios

例如,xcode

当你建立的App ID时,设置的"Bundle Seed ID (App ID Prefix)"为"ABX453B", "Bundle Identifier (App ID Suffix)"为"edu.cityu.MobileCap",那么你的App ID为"ABX453B.edu.cityu.MobileCap"。app

那么你建立project时,"company identifier"应该设置为"edu.cityu",product name应该设置为"MobileCap",也就是说 ide

company identifier的值 + product name的值 = bundle identifier in App IDspa


固然即便你建立project时,上面2个属性的设置和bundle identifier不匹配,仍是能够修改的:.net

1. select project root node in the left navigation panel,在其旁边出现的panel里选择 "Targets" item。这时其旁边就会出现属性设置窗口code


你会看到"Summary tab"的"bundle identifier",它只能够修改前半部分,即你以前建立project时设置的"edu.cityu“部分,然后面的product name部分没法修改。所以咱们不能在这个地方修改它,而要select "info" tab,见blog



你会看到"bundle identifier"的值为 edu.cityu.${PRODUCT_NAME: XXXX),原来是用了动态参数,难怪上面提到的bundle identifier只能修改一部分。而在这里则能够所有修改,例如我把它改成”edu.cityu.testApp"。ci


注意:你的app project的这个"bundle identifier"值必须和你以前建立的App ID的"bundle identifier"匹配


你还能看到"Bundle Name" and "Bundle display name"都设置为动态参数${PRODUCT_NAME}。

Bundle name - is folder name, where your app (including executable file and all resources) will be stored (Cool Program.app)。建议不要修改bundle name

Bundle display name - is what will be shown on iPhone screen,即当你安装该app到iPhone上显示的name。

注意:Bundle Display name must correspond to Bundle name,即bundle display name和bundle name不能相差太远。例如bundle name设置为 TheApplication, 而 bundle display name设置为“金瓶梅”,则apple会拒绝你的app。


固然,你也能够在info.plist file里修改这些属性。

相关文章
相关标签/搜索