App Icon not changing when app version is updated in iOS 5 simulator

牧云@^-^@ 提交于 2019-12-20 12:33:49

问题


I recently started using Xcode 4.2 and the iOS 5 simulator. When I update an older version of my app pre-installed in the simulator, it updates the app just fine but the app icon is not updated. Even with cleaning and building the app ahead of time (sometimes a couple of times) this seems to be the case. Is this a bug or am I doing something wrong?

EDIT: Still the same problem, but when I quit the simulator and start it again (NOT deleting the app), the icon is updated. That's a little encouraging at least. Has anyone else experienced this?


回答1:


Despite others' answers, it would appear that your problem is a bug.

It would probably be wise to report this. Otherwise, try making a new project and trying again.

Hope all goes as planned.




回答2:


I've had this problem for a while and cleaning the project didn't work either. I finally found a trick to do this. It works at least in iOS 6, I'm not sure in previous versions. The trick is to simply move the app to a folder. The moment you move it there it should display the new icon, and then you can move it out again.




回答3:


Theres a new category in the plist file called Icons Files (iOS 5.0). Try adding those file names to your target info like so:

In this tab:


The names and size much also be exact. See this Apple Technical Q&A #1686:

57x57      -  Icon.png
114x114  -  Icon@2x.png
72x72      -  Icon-72.png
50x50      -  Icon-Small-50.png
29x29      -  Icon-Small.png
58x58      -  Icon-Small@2x.png




回答4:


I ran into a similar problem after renaming the app and adding the Icon files category as described in one of the other answers. No icon would show up in either simulator or device. Tried a clean build as well as restarting simulator and Xcode, no success

The solution for me was to drag the icons from my Resources to the two empty wells under App Icons located under Targets -> Summary. After that my icons showed up in both simulator and device. I´m running Xcode 4.3.1




回答5:


this works for me. In iOS Simulator :

iOS Simulator -> Reset Content and Settings

Be aware that it removes all things from the simulator to the trash... but it does work.




回答6:


Make sure of icons sizes are right at the Image Asset folder



来源:https://stackoverflow.com/questions/7787178/app-icon-not-changing-when-app-version-is-updated-in-ios-5-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!