如何在 iOS 中将应用程序图标还原为原始图标?

How to revert app icon back to original in iOS?

我已成功将我的应用程序图标更改为 iOS 上的备用图标。

但是,我想知道是否可以将更改后的图标还原为原始图标,即在 Assets 文件夹中,而不必将其作为替代图标添加到 Info.plist 文件中。

我试过了 returns 出现以下错误“文件不存在”。

我希望有一种方法可以做到这一点,而不必将图像添加到 Assets 文件夹以外的其他地方...

非常感谢,

红辣椒

只需指定 nil 作为备用图标名称:

来自documentation

alternateIconName

Specify nil if you want to display the app’s primary icon, which you declare using the CFBundlePrimaryIcon key.