Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile iOS strings files from command line

Tags:

ios

iphone

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?

like image 437
Dmitry Avatar asked Mar 30 '26 00:03

Dmitry


2 Answers

I think I found what I was looking for:

plutil -convert binary1 Localizable.strings
like image 120
Dmitry Avatar answered Apr 01 '26 11:04

Dmitry


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

like image 32
paiv Avatar answered Apr 01 '26 10:04

paiv



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!