Double semicolon in Localizable.strings not reported

Originator:lutz.lameyer
Number:rdar://33397656 Date Originated:July 19 2017
Status: Resolved:
Product:Xcode Product Version:8.3.3 (8E3004b)
Classification:Other Reproducible:Always
 
Area:
Xcode

Summary:
In case a line accidentally ends in a double semicolon `;;´ in Localizable.strings, this breaks localization in the app. In Xcode, however, this error is not reported.
In contrast to other kinds of syntax errors, no warning, error or other kind of hint is displayed - neither inline (while editing), nor at compile time.
If an error like this happens, then the app won't be properly localized - instead, all localizations following the line ending with `;;´ will be ignored in the language affected.

Steps to Reproduce:
A sample project can be found here: https://github.com/lla01/radar-double-semicolon-in-localizable-strings

1. Open the project
2. In the settings for Scheme/Edit Scheme/Options select 'Application Language: English', 'Application Region: USA'
3. Run in simulator
==> Observe that texts are displayed properly localized

4. Now change language and region to German / Germany
5. Re-build and run in simulator
==> Observe that the second string is not properly localized.

Expected Results:
Xcode should display a warning, a compile time error, or any other hint that the Localized.strings file for German as syntax issues

Observed Results:
No hint displayed

Version:
Xcode Version 8.3.3 (8E3004b)

iOS: n/a (not relevant)

Notes:
Note, that in the Localized.strings for German the first line ends in a double semicolon `;;´

Configuration:
Always happens when there is a line ending in a double semicolon `;;´ in Localized.strings

Comments


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!