Friday, 15 June 2012

ios - How to use terminal for working with xCode Command Line Tools? -



ios - How to use terminal for working with xCode Command Line Tools? -

context: have installed command line tools separately conventional method of "xcode->preferences->downloads->components->command line tools->install" didn't work me.

purpose: need implement internationalization/localization on application , want utilize genstrings creating localizable.strings files.

problem: when seek utilize terminal , type command like

$ find . -name *.m | xargs genstrings -o en.lproj

i get:

couldn't connect output directory en.lproj

how should specify path directory? also, might need specify path *.m files well.

note: suggested read genstrings manual not sure how work particular xcode project while using terminal.

two things need taken care of:

1) after entering terminal, first go folder in targeted .m files present. use:

cd "path"

2) while using genstrings code, specify finish path of output directory. e.g.:

genstrings -o /users/kushalashok/desktop/projectnname/en.lproj *.m

after running code, new file named "localizable.strings" created in specified output folder.

ios xcode localization terminal genstrings

No comments:

Post a Comment