作者:俺是糊涂人一个 | 来源:互联网 | 2023-05-16 16:20
1> jeveloper..:
嗨,我是离子开发者,但我显然使用cordova.让我试着帮助你.
Privet Sergey!
我使用的shell脚本使用可以通过使用Xcode进行部署和调试的ios-deploy节点模块.
首先运行此命令列出所有设备,你应该看到它们两个(仅供参考,使用xcode一次部署到2个设备是正常的吗?)
ios-deploy -c
有关安装ios-deploy的信息,请参阅(https://github.com/phonegap/ios-deploy)
现在,要将命令连接并运行到特定设备,请使用以下命令:
ios-deploy --id --bundle my.app
这个真棒命令行工具有快捷方式.
Usage: ios-deploy [OPTION]...
-d, --debug launch the app in GDB after installation
-i, --id the id of the device to connect to
-c, --detect only detect if the device is connected
-b, --bundle the path to the app bundle to be installed
-a, --args command line arguments to pass to the app when launching it
-t, --timeout number of seconds to wait for a device to be connected
-u, --unbuffered don't buffer stdout
-n, --nostart do not start the app when debugging
-I, --noninteractive start in non interactive mode (quit when app crashes or exits)
-L, --justlaunch just launch the app and exit lldb
-v, --verbose enable verbose output
-m, --noinstall directly start debugging without app install (-d not required)
-p, --port port used for device, default: 12345
-r, --uninstall uninstall the app before install (do not use with -m; app cache and data are cleared)
-1, --bundle_id specify bundle id for list and upload
-l, --list list files
-o, --upload upload file
-w, --download download app tree
-2, --to use together with up/download file/tree. specify target
-V, --version print the executable version
-e, --exists check if the app with given bundle_id is installed or not