2

アプリケーションのビルドとアーカイブ中に、.stringsファイルがアプリケーション バンドルにコピーされます。

CopyStringsFile
/Users/Systems/Library/Developer/Xcode/DerivedData/MyProject-dqtbpsfqkwnliuflrsytopqbuvpr/Build/Intermediates/ArchiveIntermediates/Evolve/InstallationBuildProductsLocation/Applications/Evolve.app/en.lproj/InfoPlist.strings
MyProject/en.lproj/InfoPlist.strings
    cd /Users/Systems/luke/repos/MyProject/MyProject
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/Systems/Library/Developer/Xcode/DerivedData/MyProject-dqtbpsfqkwnliuflrsytopqbuvpr/Build/Intermediates/ArchiveIntermediates/Evolve/InstallationBuildProductsLocation/Applications/Evolve.app/en.lproj
-- MyProject/en.lproj/InfoPlist.strings

ipa を解凍し、文字列ファイルをテキスト エディターにロードすると、バイナリ コンテンツが表示されます。

bash を使用して文字列ファイルの内容を ASCII UTF-8 で読み取り、いくつかの文字列を見つけて置換し、再度バイナリにエンコードしたいと考えています。

具体的には、ファイルの内容を ASCI にデコードするにはどうすればよいですか?

4

1 に答える 1

3

非常に単純な bash コマンドであることが判明しました。

plutil -convert xml1 <PATH_TO_STRINGS_FILE>

そして、それを再び変換するには:

plutil -convert binary1 <PATH_TO_STRINGS_FILE>
于 2013-03-01T16:57:56.197 に答える