cocoafob
cocoafob copied to clipboard
Export for Localization Error
We develop an app in objective c using Xcode 7.3.
When attempting to export .xliff's using Xcode's built in "Export for Localization" we received this error:
5/5/16 2:11:40.719 PM Xcode[23346]: [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-10183.3/IDEFoundation/Localization/IDELocalizationWork.m:355 Details: Failed to read strings file "/var/folders/tn/5fw34l7s7f944602lkyhry_w0000gn/T/Xcode3SourceStringsAdaptor-D43C45A7-9F42-439D-BF39-D4CBA29EC0C3/Localizable.strings", underlying error: The data couldn’t be read because it isn’t in the correct format. Object: <Xcode3LocalizedSourceStringsAdaptorTableWorkContext: 0x7f933867e860> Method: -work Thread: <NSThread: 0x7f9382517c60>{number = 1, name = main} Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
After further investigation we believe it's related to this macro in CFobError.m:
NSLocalizedStringFromTableInBundle(description, nil, [NSBundle bundleForClass:[CFobLicVerifier class]], nil)
Changing it to this line appears to fix the issue:
[[NSBundle bundleForClass:[CFobLicVerifier class]] localizedStringForKey:description value:@"" table:nil]
Should we be filing a radar or is this something we should adjust in cocoafob?