简体   繁体   English

提交时Apple Watch图标问题

[英]Apple Watch icon issue upon submission

I'm trying to submit an iOS app to the App Store (one that supports the new Apple Watch) and I'm having major issues with the required icon files, their names and sizes. 我正在尝试将一个iOS应用程序提交到App Store(一个支持新Apple Watch的应用程序),并且我遇到了所需图标文件,它们的名称和大小的主要问题。 I've read the documentation ( https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/WatchHumanInterfaceGuidelines/IconandImageSizes.html#//apple_ref/doc/uid/TP40014992-CH16-SW1 ) and it says to create icons @2x of sizes 48, 55, 80, 88, 172, and 196. What does this mean, Icon-48x48@2x.png (96px x 96px) or Icon-24x24@2x.png (48px x 48px). 我已经阅读了文档( https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/WatchHumanInterfaceGuidelines/IconandImageSizes.html#//apple_ref/doc/uid/TP40014992-CH16-SW1 ),它说创建图标@ 2x的尺寸48,55,80,88,172和196.这是什么意思,Icon-48x48@2x.png(96px x 96px)或Icon-24x24@2x.png(48px x 48px) 。

When I submit my binary it keeps giving me errors... ERROR ITMS 90394 Missing Icon ... ERROR ITMS 90392 Invalid Icon 当我提交我的二进制文件时,它一直给我错误...错误ITMS 90394缺少图标...错误ITMS 90392无效图标

Could some please explain Exactly what icon names and sizes I need to include please?!? 有些人请详细说明我需要包含哪些图标名称和尺寸?!?

I've guessed and checked for hours ... Icon-48x48@2x.png (88px x 88px) is no good ... Icon-24x24@2x.png (44px x 44px) is no good! 我已经猜到并检查了几个小时... Icon-48x48@2x.png(88px x 88px)并不好...... Icon-24x24@2x.png(44px x 44px)并不好!

Also, do I add the icon files to the WatchKit App Extension or just the WatchKit App? 另外,我是否将图标文件添加到WatchKit App Extension或WatchKit应用程序?

在此输入图像描述 Go to your story board, open your WatchKit App folder, click on the Image.xcassets in there you should see the AppIcon asset, click on it and it will show you all the icon sizes. 转到你的故事板,打开你的WatchKit App文件夹,点击那里你会看到AppIcon资产的Image.xcassets,点击它,它会显示所有的图标大小。 If you click on each one, the attribute inspector will give you the pixel dimensions for each. 如果单击每个属性,属性检查器将为您提供每个像素尺寸。

I was also struggling with the same problem. 我也在努力解决同样的问题。 It's really annoying one. 这真的很烦人。 Searched for it and did all things mentioned above and in sone other posts over Internet. 搜索并完成了上面提到的所有事情以及通过Internet发布的其他帖子。 Though nothing worked. 虽然没有效果。

Well then i realised 24x24@2x should be actually of size 48x48 pixels not 24x24 and so on. 那么我意识到24x24 @ 2x实际上应该是48x48像素而不是24x24,依此类推。 I know it's a dumb one. 我知道这是一个愚蠢的。 But i guess there are more dumb people like me and this post will help them. 但我想有更多像我这样愚蠢的人,这篇文章会帮助他们。

You should definitely import the icons into WatchKit App. 您一定要将图标导入WatchKit App。 There should be one predefined image asset named "AppIcon" where you should add your icons. 应该有一个名为“AppIcon”的预定义图像资源,您应该在其中添加图标。 It worked great for me, I just updated my app to App Store review. 它对我很有用,我刚刚将我的应用更新到App Store评论。

Btw, you should import all images that you use in AppleWatch app into the WatchKit App instead of Extension, otherwise you the images are sent from iPhone into AppleWatch when the Extension communicates with the WatchKit App... 顺便说一句,你应该将你在AppleWatch应用程序中使用的所有图像导入WatchKit应用程序而不是扩展,否则当扩展程序与WatchKit应用程序通信时,图像将从iPhone发送到AppleWatch ...

After many many attempts I finally was able to successfully submit my watch supported app to the store. 经过多次尝试,我终于能够成功将我的手表支持应用程序提交到商店。

I'm unsure exactly which part was causing the issue, but one thing I did was use the naming convention outlined (by mrdoktor) in this thread: Invalid Apple Watch icon file names must match pattern "*<dimension>@<scale>x.png" 我不确定究竟哪个部分导致了这个问题,但我做的一件事就是在这个帖子中使用了(由mrdoktor)概述的命名约定: 无效的Apple Watch图标文件名必须匹配模式“* <dimension> @ <scale> x巴纽”

Note: I only named the watch app icons in this manner ... the regular icons (for iPhone/iPad) are named like icon72@2x.png etc. 注意:我只是以这种方式命名了手表应用程序图标......常规图标(用于iPhone / iPad)的名称类似于icon72@2x.png等。

I then went into Xcode's organizer->projects and deleted the "derived data" for the project. 然后我进入了Xcode的组织者 - >项目并删除了项目的“派生数据”。

Also, in my WatchKit App I have an images.xcassets file and to it I created a "New App Icon" set which I named "AppIcon-Watch". 此外,在我的WatchKit应用程序中,我有一个images.xcassets文件,我创建了一个“新应用程序图标”集,我将其命名为“AppIcon-Watch”。 I went into my project's settings and under the WatchKit App target I made sure that the App Icons Source was pointing to the newly created "AppIcon-Watch" set. 我进入了项目的设置,在WatchKit App目标下,我确保App Icons Source指向新创建的“AppIcon-Watch”集。

I did not have to touch the WatchKit Extension and it's images.xcassets. 我没有触及WatchKit扩展,它是images.xcassets。 I did not have to add the icons to the extension either. 我也没有将图标添加到扩展名。

I did have to add the watch icon files to the WatchKit App folder and import them into the project, and further drag them into the correct place within the WatchKit's images.xcassets 我必须将监视图标文件添加到WatchKit App文件夹并将它们导入到项目中,然后将它们拖到WatchKit的images.xcassets中的正确位置。

I hope this helps everyone else that is having this same issue! 我希望这有助于其他所有有同样问题的人!

I was getting the 90392 error, not from my app icons but from three other miscellaneous images I included in my watch app. 我收到90392错误,不是来自我的应用程序图标,而是来自我手表应用程序中包含的其他三个杂项图像。 I had added them directly as files in my project, which is the old school way before image assets. 我已将它们直接添加为我的项目中的文件,这是图像资产之前的旧学校方式。 I deleted these and added them to an image asset catalog instead and then the app submission went through. 我删除了这些并将它们添加到图像资产目录中,然后提交了应用程序提交。 The files and filenames were the same, so apparently all images must be part of an asset catalog. 文件和文件名是相同的,因此显然所有图像都必须是资产目录的一部分。

I got the same issue and successfully fixed it. 我遇到了同样的问题并成功修复了它。 The most strange thing is that icon named in manner 40x40@2x.png should be only home screen 38mm . 最奇怪的是,以40x40@2x.png方式命名的图标应仅为主屏幕38mm As soon as I named it in this manner my App was successfully uploaded to AppStore . 一旦我以这种方式命名,我的应用程序就成功上传到AppStore But ALL MY OTHER ICONS for AppWatch are named as usually: icon_180.png Magic which is not understandable for me. AppWatch所有其他图标通常都被命名为:icon_180.png魔术,这对我来说是不可理解的。 :-) :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM