From 86f07d1f012752700d9ee69c90058d764da17b18 Mon Sep 17 00:00:00 2001 From: Eason <291028775@qq.com> Date: Mon, 24 Jul 2023 18:09:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BD=8E=E7=89=88=E6=9C=AC=E8=AE=BE=E5=A4=87=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=90=AF=E5=8A=A8wda=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eason <291028775@qq.com> --- xctestmanagerdaemon.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xctestmanagerdaemon.go b/xctestmanagerdaemon.go index 5a36e31..152fd9e 100644 --- a/xctestmanagerdaemon.go +++ b/xctestmanagerdaemon.go @@ -28,14 +28,15 @@ func (d *xcTestManagerDaemon) initiateControlSession(XcodeVersion uint64) (err e selector := "_IDE_initiateControlSessionWithProtocolVersion:" - var ret *libimobiledevice.DTXMessageResult - if ret, err = d.testmanagerd.invoke(selector, args, d.channelCode, true); err != nil { + var _ *libimobiledevice.DTXMessageResult + if _, err = d.testmanagerd.invoke(selector, args, d.channelCode, true); err != nil { return err } - if nsErr, ok := ret.Obj.(libimobiledevice.NSError); ok { - return fmt.Errorf("%s", nsErr.NSUserInfo.(map[string]interface{})["NSLocalizedDescription"]) - } + // Some device should ignore it. + // if nsErr, ok := ret.Obj.(libimobiledevice.NSError); ok { + // return fmt.Errorf("%s", nsErr.NSUserInfo.(map[string]interface{})["NSLocalizedDescription"]) + // } return }