How to launch iOS Simulator in specific language from command line?

后端 未结 3 1391
自闭症患者
自闭症患者 2020-12-19 07:54

I need to lauch iOS Simulator that uses specific language using command line. So I found that I can use

instruments -w 

and i

3条回答
  •  [愿得一人]
    2020-12-19 08:21

    To run your app must be installed and located (if not, will open default language)

    Use this command to run your app with some language

    xcrun simctl launch   -AppleLanguages "(pt-BR)"
    

    Sample:

    xcodebuild -sdk iphonesimulator8.4 -arch i386 install DSTROOT=SomeFolder
    xcrun instruments -w "iPhone 6 (8.4 Simulator)"
    xcrun simctl install booted SomeFolder/Applications/YourApp.app
    xcrun simctl launch booted com.yourdomain.yourapp -AppleLanguages "(pt-BR)"
    

提交回复
热议问题