XCode won't update app icon.

2020-02-28 19:43发布

I am having trouble making XCode update my iPad app icon. I'm building it using Phonegap/Cordova, but the app icon is built / managed through XCode.

I built the app on my device for testing and it came across with the default Cordova icon, I then added in my own icon into the project by placing them into build summary > app icon. In XCode they show as being there but when I build it to the device, the default Cordova icon still shows. Any ideas?

PS. I'm using XCode 4.3.2.

Thanks in advance.

4条回答
smile是对你的礼貌
2楼-- · 2020-02-28 20:05

IN this link, third image from the top shows you were to change the icon. you see a folder in the left column Resources->icons. open it in the finder and replace the icon what you have for iPad etc. you can also change the splash screen images in the Resources->Splash section.

to empty the cache delete the app from the device and do a clean and build. Even if its still there(it does at times, trust me), restart your xCode.

查看更多
▲ chillily
3楼-- · 2020-02-28 20:06

I've seen this question asked alot on Stackoverflow and noone seems to have answered it properly yet. This is very simple actually.

For instance if you are using phonegap to build an iOS app, all you need to do is: replace the default images on

www/res/icon/ios/icon-36-ldpi.png
www/res/icon/ios/icon-48-mdpi.png
www/res/icon/ios/icon-72-hdpi.png
www/res/icon/ios/icon-96-xhdpi.png

with your icons...

Next, before you can run the app you will need replace the icons on Xcode too: path should be

**YOUR-APP-ROOT/platforms/ios/YOUR-APP-NAME/Resources/icons**

the magic lays within "icon.png" and "icon@2x.png" however you should replace all of the icons above, and also make sure you have the correct dimensions for each image you are replacing with, otherwise the app will not built successfully.

Now you are able to

phonegap build ios

followed by :

phonegap run ios

Have fun!

查看更多
虎瘦雄心在
4楼-- · 2020-02-28 20:11

replace the icon@2x.png and Default@2x~iphone.png and then it will work fine. The new iPhones use 114x114 px icon and 640x960 px Default image

查看更多
啃猪蹄的小仙女
5楼-- · 2020-02-28 20:13

top of the list (hit folder icon), targets group, select your target. hit summary, scroll down to the icons, re-point to the files you want to use. build. deploy. enjoy

查看更多
登录 后发表回答