"Localized" asset catalogs don't build correctly
| Originator: | tom | ||
| Number: | rdar://15543757 | Date Originated: | 24-Nov-2013 12:08 PM |
| Status: | Duplicate | Resolved: | 12948139 |
| Product: | Developer Tools | Product Version: | Xcode 5.0.2 (5A3005) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: Asset catalogs cannot be localized. First of all, there's no UI (see #15543744), but doing it manually by juggling some files (see: http://stackoverflow.com/a/19452251) does not yield the expected results when building the project. Steps to Reproduce: 1. Create a new iOS xcode project. The same probably applies to OSX projects but I haven't tested that. 2. Add a launch image to the Images.xcasset catalog already present in the project. 3. Create a new localization (does not matter which one it is) 4. Go to the location of the Images.xcasset catalog in the Finder. 5. Move this folder to the en.proj folder of the project. 6. Go back to Xcode, and update the location of the Images.xcasset catalog using the File Inspector. 7. You can now update the localization of the catalog using the checkboxes present in the file inspector. 8. Build the project. Expected Results: No build errors. Actual Results: The build fails with the error message: "There are multiple launch image set instances named "LaunchImage"". Moreover, there are warnings for all images or resources present in the asset catalog telling me that they're present more than one time. ./en.lproj/Images.xcassets:./AppIcon.appiconset: warning: The app icon set name "AppIcon" is used by multiple app icon sets. ./nl.lproj/Images.xcassets:./AppIcon.appiconset: warning: The app icon set name "AppIcon" is used by multiple app icon sets. ./nl.lproj/Images.xcassets:./Kevin/login_button.imageset: warning: The image set name "login_button" is used by multiple image sets. ./en.lproj/Images.xcassets:./Kevin/login_button.imageset: warning: The image set name "login_button" is used by multiple image sets.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!