应用程序图标不包含在Xcode的构建中 [英] App Icons not included in build from Xcode

查看:104
本文介绍了应用程序图标不包含在Xcode的构建中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从最新的Xcode Beta 6安装构建时,我无法看到iOS AppIcon。可能出现的错误是什么?

I can't see iOS AppIcon when installing build from latest Xcode Beta 6. What could be the possible error?

我已经包含了必需的图标大小,包括1024x1024。

I have included required icons sizes including 1024x1024.

推荐答案

你并不孤单。

在我的项目中,我发现之前工作正常的AppIcon资源不再导致呈现应用程序图标。一系列实验发现如下:

In my project, I found that a previous AppIcon resource that was working fine no longer resulted in an app icon being rendered. A range of experimentation found the following:


  • 从AppIcon工作的另一个项目复制的AppIcon资源导致AppIcon在此工作项目,表明特定的原始AppIcon资源无法正常工作。

  • 将图像文件从非工作复制到正在运行的AppIcon资产导致现在正在运行也失败了。

  • 创建一个新的AppIcon资源,并插入原始应用程序图标图像同样导致了一个空白的应用程序图标。

结合在一起,这个阶段的要点表明图像文件本身可能有问题。因此,我尝试了各种步骤来解决此问题:

Combined together, the points to this stage suggested perhaps there was something wrong with the image files themselves. I therefore tried various steps to resolve this:


  • 使用我常用的预处理应用Prepo重新导出所有图标大小。确保我的源图像不包含透明度。插入这些重新创建的图标图像仍然会产生一个空白的应用程序图标。

  • 使用不同的流程,通过Sketch重新创建所有图标大小,并将这些图标图像插入到同一个AppIcon资源中,从而使应用程序图标正常工作。

  • 创建新的AppIcon资源,并插入Sketch创建的图像,导致应用程序图标仍然有效。

全部以上表明Xcode 9中有一些东西拒绝或未能使用以前工作的应用程序图标图像,并且创建以前很好的应用程序图标的一些过程会生成Xcode 9无法使用的图像。也许png规范中有一些东西是有效的png,但不是Xcode 9的可接受的应用程序图标。最明显的想法是可能会拒绝具有透明度的应用程序图标,但我不相信我使用的图标图像包含透明度,我试图在上面的测试中消除这一点。

All of the above suggests that there is something in Xcode 9 which rejects or fails to use previously working app icon images, and that some processes to create app icons that previously were fine produce images that Xcode 9 cannot use. Perhaps there is something within the png specification which is a valid png, but not an acceptable app icon to Xcode 9. The most obvious thought is that app icons with transparency might be rejected, but I do not believe the icon images I was using contained transparency and I tried to eliminate this in my testing above.

为某些用户报告的一个完全独立的原因是与CocoaPods集成有关。请参阅讨论可能的临时修复此处为Cocoapods创建的拉取请求理论上解决了这个问题。我说理论上的地址是因为我已经尝试过实施这两种解决方案,而且他们都没有解决我遇到它的项目中的问题。

A completely separate cause that has been reported for some users is related to CocoaPods integration. See discussion with possible temporary fix here and a pull request that has been created for Cocoapods that theoretically addresses this issue. I say theoretically addresses because I've tried implementing both of these solutions, and neither of them resolved the issue on the project where I've encountered it.

这篇关于应用程序图标不包含在Xcode的构建中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆