xcode iOS 应用程序图标已更新,未在干净的构建/运行中显示

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8218834/
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:30:34  来源:igfitidea点击:

iOS app icons updated, not showing on clean Build/Run

iphoneiosxcode

提问by Old McStopher

I'm prepping for my first update (1.0.1) on the AppStore and will be changing the icon in the process. I deleted the old 57x57 and 114x114 icons, dropped new ones into Xcode 4's target summary, and did a clean build/run. The new icons show up in Xcode, but not on the device's home screen.

我正在为 AppStore 上的第一次更新 (1.0.1) 做准备,并将在此过程中更改图标。我删除了旧的 57x57 和 114x114 图标,将新图标放入 Xcode 4 的目标摘要中,并进行了干净的构建/运行。新图标会显示在 Xcode 中,但不会显示在设备的主屏幕上。

I suspect if I delete the app and redo the above steps, this may work, but that leaves me to wonder if an AppStore distribution will update the icons for all users.

我怀疑如果我删除应用程序并重做上述步骤,这可能会奏效,但这让我怀疑 AppStore 发行版是否会更新所有用户的图标。

Is there something I'm forgetting to do to update the icon for this next release?

有什么我忘记做的事情来更新下一个版本的图标吗?

采纳答案by Old McStopher

The answer turned out to be that my new icons had slightly different names than the old. Strangely, Xcode never complained and still showed them next to the target and in the summary.

答案是我的新图标与旧图标的名称略有不同。奇怪的是,Xcode 从不抱怨,仍然在目标旁边和摘要中显示它们。

Lesson learned:When doing an app update (or "Appdate"), modified resources need to be of the same file name to be found. It seems replacing a resource with a different resource is not sufficient. Overwriting the old resource is the way to go.

经验教训:在进行应用更新(或“Appdate”)时,修改后的资源需要具有相同的文件名才能被找到。似乎用不同的资源替换资源是不够的。覆盖旧资源是要走的路。

回答by Kekoa

I was having this problem when replacing icons for an app, the new icons didn't show up on the iOS device, no matter how many times I did a clean/build. The solution for me was to reboot the device and the new icons were recognized.

我在替换应用程序图标时遇到了这个问题,无论我做了多少次清理/构建,新图标都没有显示在 iOS 设备上。我的解决方案是重新启动设备并识别新图标。

I'm guessing this is a problem only in development, it is likely that the cached icon is refreshed when an app is installed or updated from the App Store.

我猜这只是开发中的问题,很可能在从 App Store 安装或更新应用程序时刷新缓存的图标。

回答by Apollo SOFTWARE

It will update the icon for the user's when it's distributed. I had an app i released to the app store that I had gotten from Google Images and made into an icon. Long story short, I had to change my icon so it didn't look like another App's which had the same icon! If you change it in your Build Settings you'll be ok.

它会在分发时更新用户的图标。我有一个应用程序发布到应用程序商店,我从谷歌图片获得并制作了一个图标。长话短说,我不得不改变我的图标,所以它看起来不像另一个具有相同图标的应用程序!如果您在构建设置中更改它,您会没事的。

If you change your apple-touch-icon.png for both regular and retina in your Build Settings, it will update on the app store, and the end user's ultimately. Bottom line. It should've did it for yours, I don't know why it didn't?

如果您在构建设置中更改了常规和视网膜的 apple-touch-icon.png,它将在应用商店和最终用户的最终用户中更新。底线。它应该为你做的,我不知道为什么没有?