Bundle identifier Bundle Name Bundle display name

Bundle identifier

當你創建一個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則不成功!!


例如,

當你創建的App ID時,設置的

"Bundle Seed ID (App ID Prefix)"爲"ABX453B", 

"Bundle Identifier (App ID Suffix)"爲"edu.cityu.MobileCap",

那麼你的App ID爲"ABX453B.edu.cityu.MobileCap"。

那麼你創建project時,"company identifier"應該設置爲"edu.cityu",product name應該設置爲"MobileCap",

也就是說

company identifier + product name = bundle identifier in DIP

當然即使你創建project時,上面2個屬性的設置和bundle identifier不匹配,還是可以修改的:

1. select project root node in the left navigation panel,在其旁邊出現的panel裏選擇 "Targets" item。這時其旁邊就會出現屬性設置窗口




你會看到"Summary tab"的"bundle identifier",它只可以修改前半部分,即你之前創建project時設置的"edu.cityu“部分,而後面的product name部分無法修改。因此我們不能在這個地方修改它,而要select "info" tab,見

你會看到"bundle identifier"的值爲 edu.cityu.${PRODUCT_NAME: XXXX),原來是用了動態參數,難怪上面提到的bundle identifier只能修改一部分。而在這裏則可以全部修改,例如我把它改爲”edu.cityu.testApp"。


注意:你的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裏修改這些屬性。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章