xcodebuild -importLocalizations crashes

Originator:gorman.jan
Number:rdar://28159555 Date Originated:2016-09-05
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.3.1
Classification: Reproducible:Always
 
Summary:
Importing localisations via xcodebuild crashes.

Steps to Reproduce:
Run xcodebuild to import an xliff file, e.g.

xcodebuild -importLocalizations -localizationPath ar.xliff -project dailymotion.xcodeproj

Expected Results:
It should import the file

Actual Results:
It crashes with an assertion error

2016-09-05 12:05:51.049 xcodebuild[3179:1485799] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-10188.1/IDEFoundation/Localization/IDELocalizationWork.m:177
Details:  (group) should not be nil.
Object:   <IDELocalizationWork>
Method:   +groupStreamFromFileReference:language:
Thread:   <NSThread: 0x7fe78a515160>{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 DV[1]    3179 abort      xcodebuild -importLocalizations -localizationPath  -project 

Version:
Xcode 7.3.1
Build version 7D1014

Notes:


Configuration:

Comments

Did you find a workaround for this bug? We are still seeing this on Xcode 8.2.1.


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!