Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crash while importing localizations in Xcode: (group) should not be nil

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?

like image 987
Gerstmann Avatar asked Mar 31 '16 10:03

Gerstmann


1 Answers

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.

like image 93
Gerstmann Avatar answered Nov 19 '22 14:11

Gerstmann