iosxcodeencodingxcode10localizable.strings

Xcode 10, could not decode input file using specific encoding


I am working on an iOS app. It is working fine in Xcode 9.4.1, but when I build it in Xcode 10 it gives me following error:

Error

I tried the solution given in the following post by changing the encoding, but it didn't work. I tried it by both Reinterpret and Convert

enter image description here

still the same error:

enter image description here

It's working fine on Xcode 9.4.1


Solution

  • It sounds like the file is corrupted, probably with parts of it encoded in UTF-8 and parts of it encoded in 8859-5. From its name, I would suspect this is a Cyrillic localization (perhaps Russian), and the file was probably edited using an editor that didn't correctly maintain encoding or use UTF-8 (the most common cause of that is editing on Windows).

    You'll need to open the file, probably in an external editor that can handle random encodings like vim or Sublime Text, and fix any corruption. Exactly how to do that depends on the nature of the corruption.