Localizable.strings files.. in xcode4

后端 未结 12 994
长发绾君心
长发绾君心 2020-12-13 12:43

In xcode4, (I have used v4.0.1 until now and downloaded v4.0.2 yesterday.) I made Localizable.string files and compiled my project. (As you know, my source code uses NSLocal

12条回答
  •  天命终不由人
    2020-12-13 13:23

    Related to this - take care when manually merging strings into Localizable.strings - I managed to copy/paste BOTH strings from a NSLocalizedString() macro, so that the Localizable.strings entry was in this form:

    "KEY" = "STRING", @"COMMENT STRING COPIED ACROSS ALSO, IN ERROR";
    

    The bit ,@"xxx" on building caused me to get the error:

    Read failed: The data couldn't be read because it isn't in the correct format.

    In this case doing a quick search on @" helped identify the places I'd done this.

提交回复
热议问题