Xcode-beta (7A165t): Editor > Import Localizations crashes if Localizable.string doesn't exist when importing
Originator: | ralf.ebert | ||
Number: | rdar://22082589 | Date Originated: | 31-Jul-2015 01:08 AM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode-beta (7A165t) |
Classification: | Crash/Hang/Data Loss | Reproducible: | Always |
Steps to Reproduce: 1.-5. Download the example project + xliff as created by the following steps: https://www.dropbox.com/s/c1x1yy6qpcby2jy/Bugreport-LocalizationExample.zip?dl=0 - OR - 1. Create a new iOS Single View Application 2. Add a localized string to the code, f.e. in the app delegate: NSLog("%@", NSLocalizedString("Example", comment: "Example")) 3. Add a localization in the Project settings, f.e. German 4. Select the project and export xliffs using Editor > Export For Localization 5. Edit the resulting de.xliff file and add a translation for the Example text --- 6. Select the project and choose Editor > Import Localizations - choose to import de.xliff Xcode crashes only when the Localizable.strings file doesn't exist already when importing - if one is created manually and localized for Base, it works as expected.
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!