cocos2dx APP圖標文件更改(xcoder上傳Archive ITMS-90032錯誤)

app圖標的修改一直困擾着我,xcode下似乎找不到能修改的配置文件,或許它藏在某個不爲人知的目錄下。

百度谷歌了很多,最後不得不將proj.ios_mac/ios下的圖片挨個替換所有Icon和Default開頭的png文件。新的圖片文件和原文件保持一樣的名稱和圖片大小(像素和分辨率以及格式最好一致)。這樣app的圖標就會變成你想要的圖標。貌似xcoder在某個文件裏對不同的ios機型匹配了對應的icon圖標和launch文件。

替換了所有的icon和default文件後,在上傳app archive時會報如下錯誤:

ERROR ITMS-90032:“Invalid Image Path-No image found at the path referenced under key 'CFBundleIconFiles':"[email protected]'"

查看缺省的info.plist文件可以看到有如下定義:

<key>CFBundleIconFiles~ipad</key>

<array>

<string>Icon-29</string>

<string>Icon-50</string>

<string>Icon-58</string>

<string>Icon-80</string>

<string>Icon-40</string>

<string>Icon-100</string>

<string>Icon-152</string>

<string>Icon-76</string>

<string>Icon-120</string>

<string>Icon.png</string>

<string>[email protected]</string>

<string>Icon-57.png</string>

<string>Icon-114.png</string>

<string>Icon-72.png</string>

<string>Icon-144.png</string>

</array>

其中coco2dx並沒有生成需要的Icon.png和[email protected]

製作這兩個文件放倒proj.ios_mac/ios即可:Icon.png  57*57像素 72像素分辨率 RGB 

              [email protected]  114*114像素 72像素分辨率 RGB 

clear項目然後重新生成archive上傳即可。






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