I can't export for localization, I just get a "Localization failed to read a strings file" error.
The system log says:
2015-06-07 01:41:48,305 Xcode[1914]: [MT] DVTAssertions: Warning in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Localization/IDELocalizationWork.m:434
Details: Failed to read strings file "/var/folders/vh/z7jrdtc16mv_ml4rdf3c_yf40000gn/T/Xcode3SourceStringsAdaptor-8B1BF14F-E8BF-4354-9FB6-BFF843BD6623/Localizable.strings", underlying error:
The data couldn’t be read because it isn’t in the correct format.
Object: <IDELocalizationWork>
Method: +readStringsWorkForContext:
Thread: <NSThread: 0x7fa8a250a200>{number = 1, name = main}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
But I have no idea what file "Localizable.strings" is. These steps didn't work:
- Found "Localizable.strings" in Base.lproj and deleted it. It was completely empty.
- Deleted the whole folder specified in the log message.
- Clean and Clean build folder.
- Running
genstrings
first to generate missing .strings-files.genstrings
complained and said my strings weren't literals in the calls toNSLocalizedString
. Uhh... they all look like this:private let ALERT_REMINDER_FIRED_TITLE = NSLocalizedString("ALERT_REMINDER_FIRED_TITLE", tableName:"ReminderHandler", comment:"my comment")
I figure that Localizable.strings
is supposed to contain someting, like /** no localizable strings **/
or something. The problem with that is that my project doesn't even contain the file, it's being generated as completely empty.