Localize Asset Catalogs

12,714

Solution 1

I went the classic way. Just use single localized images and set up your plist correctly. The easiest way is to use one asset catalog, set everything up. Then open the application bundle and copy the correctly named files + the correct info.plist entries. (And of course remove the assets catalog afterwards) Result looks like this:

Info-plist:

info plist keys

Launch images filenames:

launch images filenames

(I needed all iPad orientations/sizes + all portrait iphone sizes + 7.0 specific sizes)

Solution 2

From Apple's documentation, you need to set the UILaunchImageFile key to a custom launch image filename.

enter image description here

You then need to have localize that file.

enter image description here

And make sure that your Launch Image is not set to use an asset catalog.

enter image description here

Solution 3

I have the same problem in XCode 6.0 and iOS 7 and 8. Don't use Images.xcassets for splash screen. Add the following key to Info.plist:

<key>UILaunchImages~ipad</key>
<array>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>7.0</string>
        <key>UILaunchImageName</key>
        <string>Default-Landscape</string>
        <key>UILaunchImageOrientation</key>
        <string>Landscape</string>
        <key>UILaunchImageSize</key>
        <string>{768, 1024}</string>
    </dict>
</array>

Solution 4

Asset Catalog assets and images localization is supported since Xcode 11.

Share:
12,714
Antonio Giarrusso
Author by

Antonio Giarrusso

As a Digital Entrepreneur, I enjoy building great products and companies and being a servant-leader of great teams, with a demonstrated history and track record in the information technology and software industry. My work has been reported in newspapers and on TV, and I was fortunate to be on the cover of national newspapers multiple times, as well as being awarded with the “Young Italy Award”, a national award that identifies 10 Italian profiles under 35 years old for professional and artistic merits or for the scientific research achieved. I have also held over 50 workshops about entrepreneurship and artificial intelligence. I have built my first digital product when I was 21 years old, a mobile app for students named “iMathematics”. The app quickly became very popular and it was awarded by Apple as “App of the Year”, as well as one of the “Top 10 Apps for School” by Wired, and also reported by USA Today and Cult of Mac. The app has now been used by over 5 Million students, teachers and parents worldwide, and it has been used by hundreds of schools in the USA. At 26 I founded Mobixee Limited in London, a tech company focused on mobile apps. We worked on dozens of digital products, from utilities to videogames, distributed all over the world and which allowed me to specialize in product management and on the entire chain of design, development, marketing and distribution of complex digital products. At 28 I founded Userbot in Milan, an AI company with a proprietary product and technology and the mission to be the most disruptive AI company in Europe. At Userbot, I have built the team, led the product roadmap, and raised capital for over 1.2 Million euros. Userbot has been one of the SME Champions of Horizon2020, the European Union program for the most innovative companies, and was awarded with the National Award for the Innovation of Services from Confcommercio. We worked with important Italian Enterprise companies such as Aboca, Prelios, Tea Group or AGSM and public administrations such as ENEA, the Veneto Region or the Municipality of Bologna.

Updated on June 05, 2022

Comments

  • Antonio Giarrusso
    Antonio Giarrusso almost 2 years

    I know it's a new feature and this may not be possible, but I would like to be able to localize an Asset Catalog in different languages, to show a localized launch image. This was possible on XCode 4 simply localizing an image, but with an iOS7 app it not works. Do you know if that is possible?

  • Jonny
    Jonny almost 10 years
    Where did you get the "correct info.plist" entries? In the image catalog, there is only meta data in json format.
  • Jonny
    Jonny almost 10 years
  • calimarkus
    calimarkus over 9 years
    @Jonny check the actual application bundle, that gets created after a build. There you will find the plist and the images.
  • Benjamin Toueg
    Benjamin Toueg over 9 years
    Not working: "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}."