Apple Watch 应用程序提交失败 Invalid Info.plist and Icon [英] Apple Watch App Fails Submission Invalid Info.plist and Icon

查看:44
本文介绍了Apple Watch 应用程序提交失败 Invalid Info.plist and Icon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的 Apple Watch 应用提交给 Apple.验证时,它总是因各种 info.plist 问题而失败.其中之一说:

I am trying to submit my Apple Watch App to Apple. When validating, it always fails with various info.plist issues. One of these says:

捆绑包 iPrayed.app/PlugIns/iPrayed WatchKit Extension.appex/iPrayed WatchKit App.app 中的密钥‘CFBundleIcons~ipad’无效.

此外,我还收到有关无效图标名称的各种错误.我已经搜索过这些,但我在任何地方都没有看到它们.此外,Watch App 中的 CFBundleIcons 键永​​远不会显示在我的 Info.plist 中.我究竟做错了什么?下面附上三张截图,其中一张是错误截图,一张是手表应用的目标,一张是我在手表应用中的图片资源文件.

Also, I get various errors as well about Invalid icon names. I have searched for these, but I don't see them anywhere. Also, the CFBundleIcons key in the Watch App never shows on the Info.plist I have in there. What am I doing wrong? Attached below are three screenshots, one of the errors, one showing target of watch app, and one of my Image Assets file in Watch App.

推荐答案

这是 Xcode 6.2 上的一个疯狂错误,但我找到了一个简单的修复方法(经过大量努力).

This is a crazy bug on Xcode 6.2 but I found an easy fix (after lots of hard work).

显然,当在同一资产目录中为应用程序和手表使用相同的图标时,Xcode 无法正常工作,因此只需将图标分开即可解决这个问题.

Apparently, Xcode doesn't work well when using same icons for the app and for the watch at the same asset catalog so just separate the icons and that would fix that.

只是一个小提示,注意有一个方形图标,不要在这些图标上包含任何透明度.如果你这样做,它会提交,但几分钟后会自动拒绝.

Just a small notice, Pay attention to have a square icon and not to include any transparency on those icons. It would be submit if you do but would reject automatically after few minutes.

这篇关于Apple Watch 应用程序提交失败 Invalid Info.plist and Icon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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