2016-07-07 2 views
0

現在、言語を切り替えるのに役立つポッドを使用しています。インストールプロセスの一部は次のとおりです。XcodeのGenstringsにはどのようにアクセスしますか?

To support this new i18n syntax, Localize-Swift includes custom genstrings swift and python scripts. 

Copy the genstrings file (either .swift or .py) into your project's root folder and run with 

./genstrings.swift 
or 

python genstrings.py 
This will print the collected strings in the terminal. Select and copy to your default Localizable.strings. 

The swift genstrings includes the ability to specify excluded directories and files (by editing the script). 

私はgenstringsに精通しておらず、作者が何を参照しているのか分かりません。

-bash: ./genstrings.swift: No such file or directory 

命令が何を意味するか任意のアイデアを:私はライターが私のローカライズされた文字列のフォルダを意味しますが、私はそれにターミナルを実行したときに、私はこのエラーを得た推測していますか?

答えて

0

あなたはLocalize-Swiftを使用しています。そのプロジェクトのREADMEには、genstring.swiftファイルをプロジェクトのルートにコピーし、コマンドラインから実行する必要があると言われています。それは私のために働く。

+0

これは間違いありませんが、私は試行錯誤でそれを理解しています。 – SwiftyJD

関連する問題