3

Compiled iOS apps have localized strings files compiled into binary PList files and they are converted by Xcode.

Is there any way to compile them from command line from the original strings files?

2
  • I am not sure what you are asking for. What do you have as input? What do you want as output? Please clarify! Commented Feb 7, 2012 at 7:15
  • the Build Rule that handles string files is "CopyStringsFile". looking at the build output, it calls an internal Xcode function called "builtin-copyStrings". as far as i know, this isn't available outside of xcode. you could experiment with the shell tool "plutil" which, amongst other things, can convert a .plist to a binary representation. Commented Feb 7, 2012 at 8:23

2 Answers 2

5

I think I found what I was looking for:

plutil -convert binary1 Localizable.strings
Sign up to request clarification or add additional context in comments.

Comments

3

plutil it is.

The build task is here /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/CopyStringsFile.xcspec

It runs copystrings ruby script, which is based on iconv and plutil

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.