Home > Net >  Xcode archive error: detected encoding of input file as Unicode (UTF-8)
Xcode archive error: detected encoding of input file as Unicode (UTF-8)

Time:09-03

The following error occurred when performing iOS app archive:

/Users/enix/source/apple/xxx-iOS/xxxxxx/fr.lproj/Localizable.strings:1:1: note: detected encoding of input file as Unicode (UTF-8) (in target 'xxxx' from project 'xxx')

/Users/enix/source/apple/xxx-iOS/xxxxxx/fr.lproj/Localizable.strings:1:1: error: validation failed: Couldn't parse property list because the input data was in an invalid format (in target 'xxxx' from project 'xxxxxxx')

I had tried with iconv to convert the localized string to UTF-8 and UTF-16, but still not work.

So, my question is what file encoding format does XCode expect?

CodePudding user response:

After asking this question in apple forum, I got the answer finnally:

This is controlled by the Text Settings pane within in the File inspector. > Select the .strings file on the left and choose View > Inspectors > File.

https://developer.apple.com/forums/thread/713382?page=1#725798022

  • Related