I am trying to import localization files with Xcode and xcodebuild
.
I get the following output from xcodebuild -importLocalizations -project foo.xcodeproj -localizationPath ~/translations/foo/fi.xliff
:
2016-03-31 12:56:38.464 xcodebuild[8446:350058] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-10183.3/IDEFoundation/Localization/IDELocalizationWork.m:177
Details: (group) should not be nil.
Object: <IDELocalizationWork>
Method: +groupStreamFromFileReference:language:
Thread: <NSThread: 0x7fde32605b30>{number = 1, name = main}
Hints: None
Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 __61+[IDELocalizationWork groupStreamFromFileReference:language:]_block_invoke_2.252 (in IDEFoundation)
4 __33-[IDEStream(IDEStreamMonad) map:]_block_invoke (in IDEFoundation)
5 __24-[_IDEStreamMap onNext:]_block_invoke_4 (in IDEFoundation)
6 -[_DVTTimeSlicedMainThreadOrderedUniquingWorkQueue _processWorkItemsWithDeadline:] (in DVTAbort trap: 6
I suspect this failure is what causes Xcode to crash as well. Any idea how to fix this issue?
It seems I was missing some translatable files from my project.
This issue was solved when I added Localizable.strings
and its localizations, I also added InfoPlist.strings
and its localizations, but I am not sure if it had anything to do with the problem.
I also had to add the missing files into the translated xliff-files, I suppose this was the missing (group)
from the error message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With