PhoneGap启动图片iOS Apple Store提交

与往常一样,提交给我的PhoneGap应用程序的iTunesConnect相当麻烦。 特别是当我尝试使用Application Loader时,popup的这条新消息。

 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 with the -568h size modifier immediately following the <basename> portion of the launch image's filename. 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. 

根据https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/LaunchImages.html我创build了一个640 x 1136的图像,命名为“Launch_Image_640x1136-568h.png”,并将其放入www文件夹。 不过,它给了我错误。

这里发生了什么? 希望这是简单易处理的事情,但我现在正在智慧的结局。 任何人有任何信息或解决scheme? 谢谢。

**更新**

我在Windows 8.1上使用Aptana 3开发应用程序,只使用一个mac用于证书,密钥,p12文件和上传。 我没有通过Xcode在Mac上使用PhoneGap

所以我坚持下去,终于find了答案,今天在这里http://community.phonegap.com/nitobi/topics/iphone_5_optimization_requirement-on7f1和这里https://github.com/phonegap/phonegap-start/blob/master/www/ config.xml中

简而言之,这个问题就出现了,因为Apple在无休止的追求中刁难,现在需要在所有应用程序中包含“启动屏幕”图像。 因此,您现在必须拥有3个不同大小的启动屏幕图像,每个图像都有特定的命名程序。 我通过上面的链接find的解决scheme是将启动屏幕图像放在根目录中,并将以下三行添加到config.xml

 <gap:splash src="Default.png" gap:platform="ios" width="320" height="480" /> <gap:splash src="Default@2x.png" gap:platform="ios" width="640" height="960" /> <gap:splash src="Default-568h@2x.png" gap:platform="ios" width="640" height="1136" /> 

我不确定启动屏幕图像是否需要在根目录中,但目前对我来说很有用。 此外,我不知道是否图像必须以“默认”开始,但我知道,较大的两个图像必须在文件名的末尾有“@ 2x”和“-568h @ 2x”与最小的图像同名。

有关“启动屏幕”的更多信息,请参阅Apple的文档https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/LaunchImages.html

希望这有助于某人。

它需要在应用程序中声明。 点击Project文件(Xcode中带有蓝色Xcode图标的最上面的项目)。 导航到目标/常规设置启动图像是项目之一。