Xcode 10 project.pbxproj conversion to plist

I am facing an issue with the Xcode 10. I am using command line utility in my mac called plutil. Using this tool, I am generating project.pbxproj in the readable XML format. In this pbxproj file, I have also defined some user-defined keys whose values are Chinese/Japanese characters.


After opening Xcode, this XML file gets converted to a plist file. I guess this is called old style plist format. In this conversion, the keys are converted to hexadecimal strings, which are Xcode specific keys. The user-defined values, which are in the Chinese/Japanese format are also getting converted to garbage values.


The issue is that these chinese/japanese charecters are getting converted to garbage. Any solutions, please?

Did you try generating the plist directly in XCode, with its chinese or japanese characters keys ?


If that works, that may mean that the problem is not in XCode but in plutil.

The plutil command line utility works in this way. It converts a JSON structure of all the project required configurations(build setting) to readable xml format. Then on opening of xcode, it changes this readable xml format to oldStylePlist format.


I am not able to give key as chinese/japanese string because the xcode does'nt allow me in doing so as this string is not a valid build setting key. The value can be given as japan/chinese string and we are able to give this from xcode itself. But during the conversion of the readable XML, and then opening Xcode, the issue is seen.

is the plist your own or is it info.plist ?


I have tried on a data.plist of my own to create a key as


Ni hao (in chinese, but forum does not accept them)


Which seems to work.

The plist is not Info.plist. Its the actual project root file project.pbxproj

Did u find a solution for this issue? I'm also facing the same issue with plutil while converting XML back to project.pbcproj.

It works if changed directly in XCode but fails while using plutil conversion.

Xcode 10 project.pbxproj conversion to plist
 
 
Q