iOS Localize Splash Screen in Xcode 4.6

2019-04-09 14:43发布

问题:

I found a bug in Xcode 4.6 during the App Store submission process.

The problem is from May 1, 2013, Apple reject applications that doesn't support retina display and iPhone 5. To understand if an application is optimized for iPhone 5 the process looks into the launch image section in the settings:

The problem born when you try to localize the splash screen: to localize splash screen you must drag the image NOT in the launch images section, but in the supporting file folder in project navigator. Then localize the image and call it Default.png (and with other appropriate name for iPhone 5 and iPad). This procedure cause the launch images sections are blank even if all works fine: in the device you can see the correct splash based on device language.

But, because Apple looks into this section to understand if an app is optimized for iPhone 5 you can't able to publish the app and the process returns you this error: iPhone 5 optimization required.

This is a bug in Xcode because the process I mentioned works fine... Has anyone have encountered this problem and found a solution to it?

回答1:

please check this:

"....you can also localize your application icons and launch images by placing files with the same name in your language-specific project directories. Even if you provide localized versions, however, you should always include a default version of these files at the top-level of your application bundle. The default version is used in situations where a specific localization is not available..." from Apple



回答2:

I had the same problem, and I have solved it using UILaunchImageFile key in the app Info.plist and renaming the splash images, check the documentation for a more complete explanation