Localizable.strings - The data couldn’t be read because it isn’t in the correct format

前端 未结 18 1592
广开言路
广开言路 2021-01-30 06:20

If I copy something from textedit or web and paste it to localizable file it shows this compilation error. If I type those in localizable file it does not show any error. I am a

18条回答
  •  清歌不尽
    2021-01-30 06:50

    There can be multiple reasons for this:

    1. Semi-colon is missing.
    2. Invalid white space in file.
    3. Other invalid characters in file.
    4. I had merge conflict characters in it!

    <<<<<<< HEAD, ======= and >>>>>>>.

    Please note that plutil -lint Localizable.strings returned OK for point-4!

提交回复
热议问题