Command line 通过命令行在iphone设备中安装应用程序
我使用的是Command line 通过命令行在iphone设备中安装应用程序,command-line,xcodebuild,Command Line,Xcodebuild,我使用的是xcodebuild安装-alltargets-iphoneos4.2-activeconfiguration provisioning\u profile=path\u我的\u provisiongprofile code\u sign\u identity=identity。 此命令正在生成我的应用程序,我也正在获取生成文件(.app)。 但是如何从命令行将应用程序安装到设备中。 请在这个问题上帮助我。水果带: 下面是一个很好的设置教程: 这个怎么样: libimobilede
xcodebuild安装-alltargets-iphoneos4.2-activeconfiguration provisioning\u profile=path\u我的\u provisiongprofile code\u sign\u identity=identity
。
此命令正在生成我的应用程序,我也正在获取生成文件(.app)。
但是如何从命令行将应用程序安装到设备中。
请在这个问题上帮助我。水果带: 下面是一个很好的设置教程: 这个怎么样:
libimobiledevice的第三个解决方案。使用以下漂亮的脚本: -然后通过usb将iphone设备连接到运行此命令的mac 要在命令行上启动应用程序,请执行以下操作:
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
格式: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只有一行-var target=UIATarget.localTarget()代码>
这必须足以使用命令行在设备上启动应用程序。这是从libimobiledevice到MAC-OS X的端口。它非常有用,不需要越狱P不再被维护,对于一个更为最新的项目,请使用名为的fork by PhoneGap进行签出
要安装,请运行:npm安装-g ios部署
下面是一些如何使用它的示例:
// deploy and debug your app to a connected device
ios-deploy --debug --bundle my.app
// deploy and launch your app to a connected device, but quit the debugger after
ios-deploy --justlaunch --debug --bundle my.app
// deploy and launch your app to a connected device, quit when app crashes or exits
ios-deploy --noninteractive --debug --bundle my.app
// Upload a file to your app's Documents folder
ios-deploy --bundle_id 'bundle.id' --upload test.txt --to Documents/test.txt
哇,我从来没有见过在将应用程序或IPA推送到设备上时提到乐器-+1。有没有办法让instruments列出与-w
一起使用的设备ID?@noloader+1了解如何列出设备ID,我很想知道。现在已放弃使用“水果带”(链接使用的内容),无法与iOS 7一起使用:(如果有人遇到这个问题,仍然对设备ID感到疑惑:instruments-s devices
这不适用于Xcode 9.1-我似乎没有AutomationInstrument.bundle
。谢谢@santiagoRodriguez:pthanks!我用iOS 9.3.1和OS X 10.11.3A建立了一个正常工作的现代解决方案ete world.干杯!我不相信它。它可以工作。开箱即用。不需要设置。令人惊讶。安装工作很好,但调试不成功:错误:python尝试评估'fruitstrap\u device\u app=“/private/var/containers/Bundle/Application/…