fix: 修复install可能未执行

This commit is contained in:
余泓铮
2024-08-15 15:49:17 +08:00
parent 9aec5edb96
commit 803c4c0740

View File

@@ -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