Localization Export Fails When .strings Files Are Empty

Originator:RBruchal
Number:rdar://21056545 Date Originated:5/21/15
Status:Open Resolved:
Product:Xcode Product Version:6.3.2
Classification: Reproducible:Yes
 
Summary:
Exporting my project for localization  (Editor->Export For Localization...) fails producing a dialog stating "Localization failed to read a strings file. Please check the system log for more details."

The following entry was in the system log:

Error message: May 21 09:15:15 Richs-MacBook-Pro.local Xcode[93966]: [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Localization/IDELocalizationWork.m:434
Details:  Failed to read strings file "/Users/richbruchal/devworld/projects/thermos/code/Thermos/Thermos/ViewControllers/InitialSetup/Pages/HydrationVCs/HydrationSetupGoalUpdatedVC/fr-CA.lproj/HydrationSetupGoalUpdatedFooterView.strings", underlying error:
The data couldn’t be read because it isn’t in the correct format.
Object:   <IDELocalizationWork>
Method:   +readStringsWorkForContext:
Thread:   <NSThread: 0x7fa5fb8344e0>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

The file in question, "HydrationSetupGoalUpdatedFooterView.strings", has no data in it; its size is 0 bytes. This is correct as there are currently no localizable strings in the xib.

Steps to Reproduce:


Expected Results:
Expected Xcode to output a translation file

Actual Results:
Error message

Version:
Xcode 6.3.2
The xib files in question were created in a previous version, probably Xcode 6.3.1

Notes:
I'm not sure why those .strings files were blank. Other files with no strings have /* No Localized Strings */ in them. If I manually update my .strings files to include that text, the export works.

Comments

got same problem

In my case it was emptu localisation files for LaunchScreen.xib

By sky4winder at July 31, 2015, 6:40 a.m. (reply...)

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!