install application in iphone device through command line

后端 未结 5 585
夕颜
夕颜 2020-12-14 17:49

I\'m using xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity. Thi

5条回答
  •  伪装坚强ぢ
    2020-12-14 18:22

    Use this beautiful script : http://gamua.com/blog/2012/03/how-to-deploy-ios-apps-to-the-iphone-via-the-command-line/ - Then connect iphone device via usb to mac running this command

    To launch app on command line:

    instruments -w 4xxxxxxxx9 -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate NITC -e UIASCRIPT Launch-App.js
    

    format : instruments -w -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT Launch-App.js

    My Launch-App.js has only one line - var target = UIATarget.localTarget();

    This must be sufficient to launch application on device using command line

提交回复
热议问题