xcode 应用程序图标不会在 iPhone 模拟器中改变

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8856208/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:59:42  来源:igfitidea点击:

App Icon Won't Change In iPhone Simulator

iphonexcodeicons

提问by JTApps

I had an old app icon in xcode that I had just attached to the program to see how it looked in the simulator. I made changes, deleted the images, and replaced them in Xcode. However, they are still the old ones in the simulator. I tried resetting it and everything. Does it keep a cache somewhere?

我在 xcode 中有一个旧的应用程序图标,我刚刚将它附加到程序中以查看它在模拟器中的外观。我进行了更改,删除了图像,并在 Xcode 中替换了它们。但是,它们仍然是模拟器中的旧版本。我尝试重置它和一切。它是否在某处保留缓存?

EDIT: Solved by cleaning project.

编辑:通过清洁项目解决。

回答by samvermette

Have you tried cleaning?

你试过打扫吗?

From the Xcode "Product" menu, choose "Clean" or "Clean Build Folder" if you hold alt/option.

如果按住 alt/option,从 Xcode“产品”菜单中选择“清理”或“清理构建文件夹”。

回答by Enrico Susatyo

If "Clean" does not work, try this:

如果“清洁”不起作用,请尝试以下操作:

  • Reboot the device
  • Kill the app before running it from Xcode.
  • 重启设备
  • 在从 Xcode 运行它之前杀死该应用程序。

Those works in my case.

这些在我的情况下有效。