在 iOS 5 模拟器中更新应用程序版本时,应用程序图标不改变

发布于 2024-12-10 12:18:05 字数 200 浏览 0 评论 0原文

我最近开始使用 Xcode 4.2 和 iOS 5 模拟器。当我更新模拟器中预安装的旧版本应用程序时,它会很好地更新应用程序,但应用程序图标不会更新。即使提前清理和构建应用程序(有时是几次),情况似乎也是如此。这是一个错误还是我做错了什么?

编辑:仍然是同样的问题,但是当我退出模拟器并再次启动它(不删除应用程序)时,图标会更新。这至少有点令人鼓舞。还有其他人经历过吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

吹泡泡o 2024-12-17 12:18:05

我遇到这个问题有一段时间了,清理项目也不起作用。我终于找到了一个技巧来做到这一点。它至少在 iOS 6 中有效,我不确定以前的版本是否有效。诀窍是简单地将应用程序移动到文件夹中。当您将其移动到那里时,它应该显示新图标,然后您可以再次将其移出。

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.

溺ぐ爱和你が 2024-12-17 12:18:05

尽管其他人有答案,但您的问题似乎是一个错误。

报告这一点可能是明智的。否则,尝试创建一个新项目并重试。

希望一切按计划进行。

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.

北座城市 2024-12-17 12:18:05

plist 文件中有一个名为 Icons Files (iOS 5.0) 的新类别。尝试将这些文件名添加到您的目标信息中,如下所示:

iOS 5.0 Icon Files

在此选项卡中:

目标信息


名称和大小也非常准确。请参阅此 Apple 技术问答 #1686

57x57     -  Icon.png
114x114  - [电子邮件受保护]
72x72     -  Icon-72.png
50x50     -  Icon-Small-50.png
29x29     -  Icon-Small.png
58x58    -  [电子邮件受保护]

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:

iOS 5.0 Icon Files

In this tab:

Target Info


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

57x57      -  Icon.png
114x114  -  [email protected]
72x72      -  Icon-72.png
50x50      -  Icon-Small-50.png
29x29      -  Icon-Small.png
58x58      -  [email protected]

提笔书几行 2024-12-17 12:18:05

在重命名应用程序并添加其他答案之一中所述的图标文件类别后,我遇到了类似的问题。模拟器或设备中都不会显示任何图标。尝试了干净的构建以及重新启动模拟器和 Xcode,但没有成功

我的解决方案是将图标从我的资源拖动到目标 -> 下应用程序图标下的两个空井。概括。之后我的图标出现在模拟器和设备中。我正在运行 Xcode 4.3.1

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

夜清冷一曲。 2024-12-17 12:18:05

这对我有用。
在 iOS 模拟器中:

iOS 模拟器 ->重置内容和设置

请注意,它会将模拟器中的所有内容删除到垃圾箱......但它确实有效。

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.

霞映澄塘 2024-12-17 12:18:05

确保图像资源文件夹中的图标大小正确

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文