From 17d9d85686f72748e9e4fa91bf87a8fc3702a544 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Tue, 1 Jul 2025 22:20:02 +0800 Subject: [PATCH] fix: get wda status --- uixt/ios_device.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uixt/ios_device.go b/uixt/ios_device.go index 1c2d19a8..22afacf8 100644 --- a/uixt/ios_device.go +++ b/uixt/ios_device.go @@ -141,6 +141,7 @@ type DeviceDetail struct { WiFiAddress string `json:"wifiAddress,omitempty"` BuildVersion string `json:"buildVersion,omitempty"` } + type ApplicationType string const ( @@ -220,11 +221,12 @@ func (dev *IOSDevice) NewDriver() (driver IDriver, err error) { if err != nil { return nil, errors.Wrap(err, "failed to init WDA driver") } - wdaStatus, err := driver.Status() + wdaStatus, err := wdaDriver.Status() if err != nil { return nil, err } log.Info().Interface("status", wdaStatus).Msg("check WDA status") + if dev.Options.ResetHomeOnStartup { log.Info().Msg("go back to home screen") if err = wdaDriver.Home(); err != nil {