From 803c4c07409f4f99da1357c4f3da6f5fe7f6eb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E6=B3=93=E9=93=AE?= Date: Thu, 15 Aug 2024 15:49:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dinstall=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E6=9C=AA=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hrp/pkg/uixt/ios_device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrp/pkg/uixt/ios_device.go b/hrp/pkg/uixt/ios_device.go index 576bfa1c..df9ad89e 100644 --- a/hrp/pkg/uixt/ios_device.go +++ b/hrp/pkg/uixt/ios_device.go @@ -474,7 +474,7 @@ func (dev *IOSDevice) StopPcap() string { } func (dev *IOSDevice) Install(appPath string, opts *InstallOptions) (err error) { - for i := 0; i < opts.RetryTime; i++ { + for i := 0; i <= opts.RetryTime; i++ { err = myexec.RunCommand("ideviceinstaller", "-u", dev.UDID, "-i", appPath) if err == nil { return nil