从终端命令启动iOS ipa

时间:2019-06-05 01:24:10

标签: ios command launching-application

我将使用Ranorex自动化我的应用程序测试。为此,我需要在ios设备上启动RanorexServiceApp,然后才能启动测试脚本。 如何从Mac终端启动RanorexServiceApp? ps .:很抱歉语法错误。

我尝试使用airtest,ios-tagent,ideviceinstaller,ios-deploy,libimobiledevice失败了。

1 个答案:

答案 0 :(得分:0)

首先确定要使用的设备:

xcrun simctl list

这将为您提供设备列表:

-- iOS 12.0 --
    iPhone 6 Plus (AD61D26E-456A-4B4C-9470-B6C362AC140Q) (Shutdown)

选择所需的ID(例如,AD61D26E-456A-4B4C-9470-B6C362AC140Q)(如果需要,可以使用xcrun simctl create创建自己的设备)。

用该设备启动模拟器(用ID替换YOUR-DEVICE-ID)

/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator -CurrentDeviceUDID <YOUR-DEVICE-ID>

现在您应该可以使用simctl来安装和启动命令。

xcrun simctl install <YOUR-DEVICE-ID> <PATH-TO-APPLICATION-BUNDLE>
xcrun simctl launch <YOUR-DEVICE-ID> <BUNDLE-ID-OF-APP-BUNDLE>

xcrun simctl help了解更多信息。

相关问题