如果你从Xcode9
提交应用程序时看到图标error
,或者如果你在模拟器和设备上看不到应用程序图标,只需将你的cocoapods
更新到项目中的最新版本即可.这个问题是Xcode9
和cocoapods
中的一个错误.
有一个新的iPhoneX
指南,可以看到here.
Here是一个有用的网站,它为iOS、Mac应用和Android应用创建了一个图标.
你只需要拖放你的1024 x 1024图标,网站就会创建所有大小的图标,并将其发送到你的邮箱中.然后按照以下方法为iOS应用程序设置图标.
在苹果发布iOS 8、iPhone 6和6 Plus后,应用程序图标大小和启动图像大小都发生了变化.请访问我的帖子了解新尺码:
Image resolution for new iPhone 6 and 6+, @3x support added?个
是的,您需要添加一个120x120高分辨率图标.现在,如果你只想针对iOS 7,你只需要76 x 76、120 x 120和152 x 152图标大小.如果你还想瞄准iOS 6,你需要57 x 57, 72 x 72, 76 x 76, 114 x 114, 120 x 120, 144 x 144 and 152 x 152
个图标大小.如果你不想让操作系统对聚光灯和设置图标进行插值,就不需要计算聚光灯和设置图标!
根据博客文章100.
UPDATE:个
根据苹果指南App-icon或Icon and Image Sizes:
Icon dimensions (iOS 7 and later)个
Icon dimensions (iOS 6.1 and earlier)个
为不同的设备创建不同大小的应用程序图标.如果你要创建一个通用的应用程序,你需要提供所有四种大小的应用程序图标.
For iPhone and iPod touch, both of these sizes are required:
120 x 120像素
60 x 60像素(标准分辨率)
For iPad, both of these sizes are required:个
152 x 152
76 x 76像素(标准分辨率)
Now set this into Project:个
- 之后,单击
ProjectName-Info.plist
并找到icon files行.如果您找不到它,那么点击(+)
符号并 Select 图标文件来添加它,然后设置所有图标图像,如下所示.
Now archive and distribute your project as we did for submission of the app binary into the App Store. I hope now you can submit your app without any icon issue.
NOTE:
请注意提供您需要的所有图标.否则,您的应用程序将无法通过Apple验证.如果您收到过这样的邮箱:
Invalid Image - For iOS applications, icons included in the binary submission must be in the PNG format.
- If your application supports the iPhone device family, you must include square icons of the following dimensions: 57x57 pixels and 120x120 pixels.
- If your application supports the iPad device family, you must include square icons of the following dimensions: 72x72 pixels, 76x76 pixels and 152x152 pixels
苹果现在也接受在iOS7上运行的应用程序,所以不管是Deployment target
6.1 or earlier,但你还需要提供我上面提到的iOS7图标大小(这是store 期望的).
Xcode 5 app icon Manage
如果您使用的是xCode5,首先要更新的是图标.Xcode 5引入了Asset Catalogs来简单地管理图像的多个副本(例如多分辨率).我们将创建一个来管理游戏的图标和发布图像.
现在,单击"使用资源目录"按钮.确认迁移时,还会询问您是否希望迁移启动图像(启动应用程序时出现的启动屏幕的iOS对话)——您还需要确保选中该选项.
请查看更多信息Apple doc of Asset Catalogs