Whenever there is any change in Localizable.xcstrings
, XCode 16 simply crashes. This happens since early betas and continues even through the latest XCode 16.2 beta.
The issue is probably due to some obscure character somewhere in the now monolithic Localization.xcstrings file which now contains all (sometimes rather exotic) localizations - thus making pinpointing the offending character basically impossible. The issue seems to happen when the Commit UI tries to produce the delta in the Localizable.xcstrings
source code.
The crash in question is this:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 SourceEditor 0x132c33b04 SourceEditorDataSource.contentRangeForLineRange(_:) + 244
1 IDEDelta 0x362349768 specialized Collection.map<A, B>(_:) + 212
2 IDEDelta 0x362346198 SourceCodeGalleryExhibitEditor.delta_collapseToSuggestedLineRanges(for:) + 796
3 IDEDelta 0x362310e7c ComparisonContext.sessionDidScrapeDiffResults(_:) + 276
4 IDEDelta 0x3623111f8 @objc ComparisonContext.sessionDidScrapeDiffResults(_:) + 52
5 DeltaFoundation 0x1444bd4e8 -[DESession _notifySessionDidScrape] + 212
6 DeltaFoundation 0x1444bcf3c -[DESession _scrapeResults] + 400
I posted a FB about this way back then (FB14906558) and sent numerous reports but the issue is just not getting resolved.