简体   繁体   English

无法使用 XCode 7 上传到 App Store

[英]Unable to upload to App Store using XCode 7

-Background This issue only happened using XCode 7.0 or later but neither before. -背景 此问题仅在使用 XCode 7.0 或更高版本时发生,但之前均未发生。 The project only has minor changes in sources code but not in assets file as well as the story board.该项目仅对源代码进行了微小更改,但在资产文件和故事板中没有更改。

-Issue After archived the project successfully and waiting the process to be completed after pressing Upload to App Store. - 问题在成功归档项目并在按下上传到 App Store 后等待过程完成后。 The following error prompt以下错误提示

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}.您的二进制文件未针对 iPhone 5 进行优化 - 提交的新 iPhone 应用程序和应用程序更新必须支持 iPhone 5 上的 4 英寸显示屏,并且必须包含在 UILaunchImages 下的 Info.plist 中引用的启动图像,并将 UILaunchImageSize 值设置为 {320,568}。 Launch images must be PNG files and located at the top-level of your bundle, or provided within each .Iproj folder if you localized your launch images.启动图像必须是 PNG 文件并位于包的顶层,或者如果您本地化启动图像,则在每个 .Iproj 文件夹中提供。

错误描述

However, launch image has never been set and exists in the project, therefore i find there are no clues and hints for how to fix this problem.但是,项目中从未设置和存在启动图像,因此我发现没有关于如何解决此问题的线索和提示。 It is confirmed the configuration can work on or before XCode 6.4.确认配置可以在 XCode 6.4 或之前运行。

项目配置

Please kindly advise.请指教。

LaunchScreen file should be xxx.Storyboard Actually Main is the main storyboard file where all your views are designed. LaunchScreen 文件应该是xxx.Storyboard实际上 Main 是设计所有视图的主要故事板文件。 You should Change it with LaunchScreen.Storyboard or LaunchScreen.xib ... But if you have image.assets you can click on use asset Catalog and then in launch image fill all the images required with all sizes you need.您应该使用 LaunchScreen.Storyboard 或 LaunchScreen.xib 对其进行更改...但是如果您有 image.assets,您可以单击使用资产目录,然后在启动图像中填充所需的所有尺寸的所有图像。 (if you will use catalogs, don't forget to clear Launch Screen File name (leave it blank)) (如果您将使用目录,请不要忘记清除启动屏幕文件名(留空))

Do not use Main as the launch screen storyboard.不要使用 Main 作为启动屏幕故事板。 Main is your main storyboard; Main 是您的主要故事板; it's where your interface comes from when the app actually runs.这是应用程序实际运行时您的界面的来源。 Use a separate launch screen storyboard as your launch storyboard;使用单独的启动屏幕故事板作为启动故事板; its structure is completely different, and having the right structure will solve the problem.它的结构完全不同,有正确的结构就能解决问题。

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

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