“您的二进制文件未针对iPhone 5优化".在我使用xcode 6.0.1上传应用程序之后 [英] "Your binary is not optimized for iPhone 5" after I upload an app with xcode 6.0.1

查看:88
本文介绍了“您的二进制文件未针对iPhone 5优化".在我使用xcode 6.0.1上传应用程序之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode版本6.0.1(6A317)上传二进制文件后,我收到此电子邮件

I am getting this email after upload my binary with Xcode Version 6.0.1 (6A317)

您的二进制文件未针对iPhone 5优化--新的iPhone应用程序和应用程序 提交的更新必须支持iPhone 5上的4英寸显示屏,并且必须 包括在Info.plist中引用的启动图像 UILaunchImageSize值设置为{320,568}的UILaunchImages. 启动图像必须是PNG文件,并且位于您的顶层 包,或者在每个.lproj文件夹中提供(如果您本地化 启动图像.了解有关iPhone 5支持和应用启动图像的更多信息 通过查看以下网址的"iOS人机界面指南" ' https ://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5 ' 以及位于 '

Your binary is not optimized for iPhone 5 - - New iPhone apps and app updates submitted must support the 4-inch display on iPhone 5 and must include a launch image referenced in the Info.plist under UILaunchImages with a UILaunchImageSize value set to {320, 568}. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the 'iOS Human Interface Guidelines' at 'https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW5' and the 'iOS App Programming Guide' at 'https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12'.

这是我的plist文件:

Here is my plist file:

这是我的Xcode树:

Here is my Xcode tree:

这是我的捆绑包根树:

这是我可以找到的唯一资源,但仍未得到答复(已发布3天)... https: //devforums.apple.com/message/1051948#1051948

Here is the only resource I could find on this issue but it remains unanswered (3 days old)... https://devforums.apple.com/message/1051948#1051948

推荐答案

我们遇到了同样的问题,尝试了许多解决方案后仍无法解决,我们认为这是App提交中的一种错误. 但是我们找到了一种解决方法,可以使启动图像保持本地化并通过提交验证.

We faced the same issue and couldn't solve it after trying many solutions, we believe it's a kind of bug in App submission. But we found a workaround which can keep launch images localized and pass the submission verification.

环境:

带有iOS 8.1 SDK的Xcode 6.1(6A1052c)

Xcode 6.1 (6A1052c) with iOS 8.1 SDK

前提条件:

在"* -info.plist"文件中具有以下属性.

Have following properties in your "*-info.plist" file.

步骤:

  1. 转到目标的设置,并在我们的标准方案中(本地化 启动图像,它使用"* -info.plist"中的"UILaunchImages",但不使用 图片素材),它应该看起来像图片

  1. Go to your target's settings and in our standard scenario (localize launch images, which uses "UILaunchImages" in "*-info.plist" but not image assets), it should look like the image

更改设置以使用图像资产(注意:此步骤之后,Xcode将自动删除* -info.plist文件中的"UILaunchImages"属性.因此,请先备份这些属性.)

Change the setting to use image assets (Note: after this step, Xcode will automatically REMOVE the "UILaunchImages" properties in your *-info.plist file. So please BACKUP the properties first.)

转到"LaunchImage"资产(可以单击右侧的箭头按钮),并填充来自* .lproj文件夹之一的图像.

Go to the "LaunchImage" assets (can click the arrow button on the right) and fill with images from one of your *.lproj folder.

现在,转到包含图像和"Contents.json"文件的"LaunchImage"文件夹.

Now, go to the "LaunchImage" folder which contains images and "Contents.json" file.

删除刚刚添加的所有启动 IMAGES ,但保留"Contents.json"(及其内容)文件.

Remove ALL the launch IMAGES just added, but keep the "Contents.json" (and it's content) file.

选中"Contents.json",它应该包含如下图所示的属性

Check the "Contents.json", it should contains properties like image below

仔细检查以下项目:

  • 资源文件夹(en.lproj,ja.lproj等)中的本地化启动映像

  • Localized launch images in resource folders (en.lproj, ja.lproj, etc.)

*-info.plist包含"UILaunchImages"属性

*-info.plist contains "UILaunchImages" properties

项目设置将图像资产用于启动图像

Project setting uses image asset for launch images

"LaunchImage"资产文件夹中的"Contents.json",并且该文件夹没有确实具有启动图像

"Contents.json" in "LaunchImage" asset folder, and the folder DOES NOT really have launch images

现在,您可以尝试获取本地化的启动图像,并将二进制文件提交到iTunes Connect.在我们的应用中,该变通办法确实适用于"本地化的启动图像"和"提交成功".

Now you can have a try for localized launch images and submit the binary to iTunes Connect. In our App, the workaround did work for "localized launch images" and "submission successful".

这应该是避免提交检查中的错误的技巧.

It should be a trick for avoiding the bug in submission checking.

由于上述解决方法不会更改任何资源,除了使检查认为我们使用了图像资产外,我们更加确信Apple的检查存在一些错误.

Since the workaround above doesn't change any resource, except making the checking thinks we use image assets, we are more convinced that there are some bugs in Apple's checking.

干杯!

这篇关于“您的二进制文件未针对iPhone 5优化".在我使用xcode 6.0.1上传应用程序之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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