danielpaulus / go-ios

This is an operating system independent implementation of iOS device features. You can run UI tests, launch or kill apps, install apps etc. with it.
MIT License
803 stars 162 forks source link

ios runwda on mac does not start server #74

Open Hcu opened 2 years ago

Hcu commented 2 years ago

I'm trying to execute the runwda command on a mac machine but it does not seem to fully start up the WDA process.

Why am I running this on a mac ? Well ultimately, I would like to have a linux box that has an SSH tunnel to the mac and simply use unix socket forwarding to forward /var/run/usbmuxd to expose the devices to the linux machine. At first I was performing ios runwda from the linux box with the ssh tunnelled /var/run/usbmuxd, but that didn't work, so I figured, let's try it on the mac itself, and also there, it seems to 'hang'. It seems to work 'partially' as in, the process starts, but I never get output that the wda server is up and running with the device ip and the wda port printed out in the output.

Here is the output of the runwda command on the mac with tracing enabled.

./ios runwda --bundleid=com.test.WebDriverAgentRunner.xctrunner --testrunnerbundleid=com.test.WebDriverAgentRunner.xctrunner --xctestconfig=WebDriverAgentRunner.xctest --udid=40xxxxxxxxxxxxxxxx --nojson --env USE_PORT=8100 -t

DEBU[0000] Looking for device '40xxxxxxxxxxxxxxxx'
DEBU[0000] Opening connection:0xc00033edc0
DEBU[0000] UsbMux sendios.ReadDevicesType on 0xc00000e9c8
DEBU[0000] UsbMux Receive on 0xc00000ea10
DEBU[0000] Opening connection:0xc00033f2c0
DEBU[0000] UsbMux sendios.ReadPair on 0xc00000fc70
DEBU[0000] UsbMux Receive on 0xc00000fcb8
DEBU[0000] UsbMux sendios.connectMessage on 0xc00000fc70
DEBU[0000] UsbMux Receive on 0xc000378410
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc000343be0 and wrap with tlsConn0xc000319328
DEBU[0000] Lockdown sendios.startServiceRequest
DEBU[0000] Service started on device                     EnableServiceSSL=true Port=54418 Request=StartService Service=com.apple.mobile.diagnostics_relay
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc000343be0
DEBU[0000] Opening connection:0xc00033fc30
DEBU[0000] UsbMux sendios.ReadPair on 0xc000378dd0
DEBU[0000] UsbMux Receive on 0xc000378e00
DEBU[0000] Opening connection:0xc00033fdd0
DEBU[0000] UsbMux sendios.connectMessage on 0xc000379508
DEBU[0000] UsbMux Receive on 0xc000379538
DEBU[0000] enable session ssl on0xc00037fac0 and wrap with tlsConn0xc000319348
INFO[0000] Running wda                                   bundleid=com.test.WebDriverAgentRunner.xctrunner testbundleid=com.test.WebDriverAgentRunner.xctrunner xctestconfig=WebDriverAgentRunner.xctest
DEBU[0000] Opening connection:0xc000096000
DEBU[0000] UsbMux sendios.ReadPair on 0xc0000aa020
DEBU[0000] UsbMux Receive on 0xc0000aa050
DEBU[0000] UsbMux sendios.connectMessage on 0xc0000aa020
DEBU[0000] UsbMux Receive on 0xc0000aa758
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc000094000 and wrap with tlsConn0xc00009c010
DEBU[0000] Lockdown sendios.startServiceRequest
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc000094000
DEBU[0000] Failed connecting to com.apple.testmanagerd.lockdown.secure with Could not start service:com.apple.testmanagerd.lockdown.secure with reason:'InvalidService'. Have you mounted the Developer Image?, trying com.apple.testmanagerd.lockdown
DEBU[0000] Opening connection:0xc000052880
DEBU[0000] UsbMux sendios.ReadPair on 0xc00000e188
DEBU[0000] UsbMux Receive on 0xc00000e1b8
DEBU[0000] UsbMux sendios.connectMessage on 0xc00000e188
DEBU[0000] UsbMux Receive on 0xc000378800
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc000342000 and wrap with tlsConn0xc00009c020
DEBU[0000] Lockdown sendios.startServiceRequest
DEBU[0000] Service started on device                     EnableServiceSSL=true Port=54422 Request=StartService Service=com.apple.testmanagerd.lockdown
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc000342000
DEBU[0000] Opening connection:0xc00040c3a0
DEBU[0000] UsbMux sendios.ReadPair on 0xc000378c20
DEBU[0000] UsbMux Receive on 0xc000378c50
DEBU[0000] Opening connection:0xc00040c540
DEBU[0000] UsbMux sendios.connectMessage on 0xc000379388
DEBU[0000] UsbMux Receive on 0xc0003793b8
DEBU[0000] enable session ssl on0xc00005d640 and wrap with tlsConn0xc000318010
DEBU[0000] Opening connection:0xc00040c610
DEBU[0000] UsbMux sendios.ReadPair on 0xc000379418
DEBU[0000] Dispatching:_notifyOfPublishedCapabilities:
DEBU[0000] Global Dispatcher Received: [_notifyOfPublishedCapabilities:] [{t:binary, v:{"com.apple.private.DTXBlockCompression":2,"com.apple.private.DTXConnection":1}},]
DEBU[0000] UsbMux Receive on 0xc000379448
DEBU[0000] UsbMux sendios.connectMessage on 0xc000379418
DEBU[0000] UsbMux Receive on 0xc00000ed40
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc00005d6c0 and wrap with tlsConn0xc000010048
DEBU[0000] Lockdown sendios.valueRequest
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc00005d6c0
DEBU[0000] Opening connection:0xc00033e430
DEBU[0000] UsbMux sendios.ReadPair on 0xc0001ff550
DEBU[0000] UsbMux Receive on 0xc0001ff580
DEBU[0000] UsbMux sendios.connectMessage on 0xc0001ff550
DEBU[0000] UsbMux Receive on 0xc0000ab100
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc000214240 and wrap with tlsConn0xc000318078
DEBU[0000] Lockdown sendios.startServiceRequest
DEBU[0000] Service started on device                     EnableServiceSSL=false Port=54426 Request=StartService Service=com.apple.mobile.installation_proxy
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc000214240
DEBU[0000] Opening connection:0xc00040cb30
DEBU[0000] UsbMux sendios.ReadPair on 0xc000379c88
DEBU[0000] UsbMux Receive on 0xc000379cb8
DEBU[0000] Opening connection:0xc00040ccd0
DEBU[0000] UsbMux sendios.connectMessage on 0xc0003403c8
DEBU[0000] UsbMux Receive on 0xc0003403f8
DEBU[0000] Lockdown sendmap[string]interface {}
DEBU[0000] Opening connection:0xc000392b70
DEBU[0000] UsbMux sendios.ReadPair on 0xc0000aa230
DEBU[0000] UsbMux Receive on 0xc0000aa260
DEBU[0000] UsbMux sendios.connectMessage on 0xc0000aa230
DEBU[0000] UsbMux Receive on 0xc0000aa968
DEBU[0000] Lockdown sendios.startSessionRequest
DEBU[0000] enable session ssl on0xc0003949a0 and wrap with tlsConn0xc00009c010
DEBU[0000] Lockdown sendios.startServiceRequest
DEBU[0000] Service started on device                     EnableServiceSSL=true Port=54429 Request=StartService Service=com.apple.mobile.house_arrest
DEBU[0000] Lockdown sendios.stopSessionRequest
DEBU[0000] Closing connection:0xc0003949a0
DEBU[0000] Opening connection:0xc00033e190
DEBU[0000] UsbMux sendios.ReadPair on 0xc0001fe350
DEBU[0000] UsbMux Receive on 0xc0001fe380
DEBU[0000] Opening connection:0xc00033e350
DEBU[0000] UsbMux sendios.connectMessage on 0xc0001fea88
DEBU[0000] UsbMux Receive on 0xc0001feab8
DEBU[0000] enable session ssl on0xc000310b80 and wrap with tlsConn0xc00009c030
DEBU[0000] Lockdown sendmap[string]interface {}
DEBU[0001] Closing connection:0xc000310b80
DEBU[0001] Closing connection:0xc0003108c0
DEBU[0001] Requesting channel                            channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"
DEBU[0001] i5.1 c0 t:Ack mlen:16 aux_len0 paylen0
DEBU[0001] Channel open                                  channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"
DEBU[0001] expected err_IDE_initiateControlSessionWithCapabilities got wrong returnvalue: [{%!s(uint64=1) DTXMessage map[NSLocalizedDescription:Unable to invoke -[<XCIDESession: 0x155e89de0> (socket 6) created Monday, November 22, 2021 at 9:00:19 PM Eastern Standard Time _IDE_initiateControlSessionWithCapabilities:] - it does not respond to the selector]}]
DEBU[0001] initiateControlSessionForTestProcessID reply  channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface" reply="i2.1 c1 t:ResponseWithReturnValueInPayload mlen:155 aux_len0 paylen139"
DEBU[0001] got protocolversion:30
DEBU[0001] Opening connection:0xc000610a00
DEBU[0001] UsbMux sendios.ReadPair on 0xc0001ffa60
DEBU[0001] UsbMux Receive on 0xc0001ffa90
DEBU[0001] UsbMux sendios.connectMessage on 0xc0001ffa60
DEBU[0001] UsbMux Receive on 0xc0004021b8
DEBU[0001] Lockdown sendios.startSessionRequest
DEBU[0001] enable session ssl on0xc0003114e0 and wrap with tlsConn0xc000010070
DEBU[0001] Lockdown sendios.startServiceRequest
DEBU[0001] Service started on device                     EnableServiceSSL=true Port=54432 Request=StartService Service=com.apple.testmanagerd.lockdown
DEBU[0001] Lockdown sendios.stopSessionRequest
DEBU[0001] Closing connection:0xc0003114e0
DEBU[0001] Opening connection:0xc000611080
DEBU[0001] UsbMux sendios.ReadPair on 0xc000402a88
DEBU[0001] UsbMux Receive on 0xc000402ab8
DEBU[0001] Opening connection:0xc000611220
DEBU[0001] UsbMux sendios.connectMessage on 0xc0004031c0
DEBU[0001] UsbMux Receive on 0xc0004031f0
DEBU[0001] enable session ssl on0xc00037f140 and wrap with tlsConn0xc000010098
DEBU[0001] connections ready
DEBU[0001] Requesting channel                            channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"
DEBU[0001] Dispatching:_notifyOfPublishedCapabilities:
DEBU[0001] Global Dispatcher Received: [_notifyOfPublishedCapabilities:] [{t:binary, v:{"com.apple.private.DTXBlockCompression":2,"com.apple.private.DTXConnection":1}},]
DEBU[0001] i5.1 c0 t:Ack mlen:16 aux_len0 paylen0
DEBU[0001] Channel open                                  channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"
DEBU[0001] {map[]}
DEBU[0001] error initiateSessionWithIdentifierAndCaps, _IDE_initiateSessionWithIdentifier:capabilities: got wrong returnvalue: [{%!s(uint64=1) DTXMessage map[NSLocalizedDescription:Unable to invoke -[<XCIDESession: 0x155da28f0> (socket 9) created Monday, November 22, 2021 at 9:00:21 PM Eastern Standard Time _IDE_initiateSessionWithIdentifier:capabilities:] - it does not respond to the selector]}]
DEBU[0001] Launching init test Session                   channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"
DEBU[0001] init test session reply                       channel_id="dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface" reply="i2.1 c1 t:ResponseWithReturnValueInPayload mlen:155 aux_len0 paylen139"
DEBU[0001] protocol version received: 30
DEBU[0001] {map[]}
DEBU[0001] Opening connection:0xc000401b10
DEBU[0001] UsbMux sendios.ReadPair on 0xc00000eae8
DEBU[0001] UsbMux Receive on 0xc00000eb18
DEBU[0001] UsbMux sendios.connectMessage on 0xc00000eae8
DEBU[0001] UsbMux Receive on 0xc00000f220
DEBU[0001] Lockdown sendios.startSessionRequest
DEBU[0001] enable session ssl on0xc00037ffa0 and wrap with tlsConn0xc0000100b0
DEBU[0001] Lockdown sendios.startServiceRequest
DEBU[0001] Service started on device                     EnableServiceSSL=true Port=54435 Request=StartService Service=com.apple.instruments.remoteserver
DEBU[0001] Lockdown sendios.stopSessionRequest
DEBU[0001] Closing connection:0xc00037ffa0
DEBU[0001] Opening connection:0xc0000529b0
DEBU[0001] UsbMux sendios.ReadPair on 0xc00000fad8
DEBU[0001] UsbMux Receive on 0xc00000fb08
DEBU[0001] Opening connection:0xc0000530c0
DEBU[0001] UsbMux sendios.connectMessage on 0xc0003782c0
DEBU[0001] UsbMux Receive on 0xc0003782f0
DEBU[0001] enable session ssl on0xc00005db20 and wrap with tlsConn0xc0000100d0
DEBU[0001] Requesting channel                            channel_id=com.apple.instruments.server.services.processcontrol
DEBU[0001] Dispatching:_notifyOfPublishedCapabilities:
DEBU[0001] Global Dispatcher Received: [_notifyOfPublishedCapabilities:] [{t:binary, v:{"com.apple.dt.Instruments.inlineCapabilities":1,"com.apple.dt.Xcode.WatchProcessControl":3,"com.apple.dt.services.capabilities.vmtracking":1,"com.apple.instruments.server.services.ConditionInducer":1,"com.apple.instruments.server.services.activitytracetap":6,"com.apple.instruments.server.services.activitytracetap.deferred":1,"com.apple.instruments.server.services.activitytracetap.immediate":1,"com.apple.instruments.server.services.activitytracetap.windowed":1,"com.apple.instruments.server.services.assets":4,"com.apple.instruments.server.services.assets.response":2,"com.apple.instruments.server.services.coreprofilesessiontap":2,"com.apple.instruments.server.services.coreprofilesessiontap.deferred":1,"com.apple.instruments.server.services.coreprofilesessiontap.immediate":1,"com.apple.instruments.server.services.coreprofilesessiontap.multipleTimeTriggers":1,"com.apple.instruments.server.services.coreprofilesessiontap.pmc":1,"com.apple.instruments.server.services.coreprofilesessiontap.pmi":1,"com.apple.instruments.server.services.coreprofilesessiontap.windowed":1,"com.apple.instruments.server.services.coresampling":10,"com.apple.instruments.server.services.device.applictionListing":1,"com.apple.instruments.server.services.device.xpccontrol":2,"com.apple.instruments.server.services.deviceinfo":108,"com.apple.instruments.server.services.deviceinfo.app-life-cycle":1,"com.apple.instruments.server.services.deviceinfo.condition-inducer":1,"com.apple.instruments.server.services.deviceinfo.dyld-tracing":1,"com.apple.instruments.server.services.deviceinfo.energytracing.location":1,"com.apple.instruments.server.services.deviceinfo.gcd-perf":1,"com.apple.instruments.server.services.deviceinfo.gpu-allocation":1,"com.apple.instruments.server.services.deviceinfo.metal":1,"com.apple.instruments.server.services.deviceinfo.recordOptions":1,"com.apple.instruments.server.services.deviceinfo.scenekit-tracing":1,"com.apple.instruments.server.services.deviceinfo.systemversion":130102,"com.apple.instruments.server.services.filetransfer":1,"com.apple.instruments.server.services.filetransfer.debuginbox":1,"com.apple.instruments.server.services.fsusage":2,"com.apple.instruments.server.services.fsusage.deferred":1,"com.apple.instruments.server.services.fsusage.immediate":1,"com.apple.instruments.server.services.gpu":1,"com.apple.instruments.server.services.gpu.counters":2,"com.apple.instruments.server.services.gpu.deferred":1,"com.apple.instruments.server.services.gpu.immediate":1,"com.apple.instruments.server.services.graphics.coreanimation":1,"com.apple.instruments.server.services.graphics.coreanimation.deferred":1,"com.apple.instruments.server.services.graphics.coreanimation.immediate":1,"com.apple.instruments.server.services.graphics.opengl":1,"com.apple.instruments.server.services.graphics.opengl.deferred":1,"com.apple.instruments.server.services.graphics.opengl.immediate":1,"com.apple.instruments.server.services.graphics.openglesanalyzer":1,"com.apple.instruments.server.services.graphics.openglesanalyzer.deferred":1,"com.apple.instruments.server.services.graphics.openglesanalyzer.immediate":1,"com.apple.instruments.server.services.mobilenotifications":1,"com.apple.instruments.server.services.networking":2,"com.apple.instruments.server.services.networking.deferred":1,"com.apple.instruments.server.services.networking.immediate":1,"com.apple.instruments.server.services.objectalloc":4,"com.apple.instruments.server.services.objectalloc.deferred":1,"com.apple.instruments.server.services.objectalloc.immediate":1,"com.apple.instruments.server.services.objectalloc.zombies":1,"com.apple.instruments.server.services.power":1,"com.apple.instruments.server.services.power.deferred":1,"com.apple.instruments.server.services.power.immediate":1,"com.apple.instruments.server.services.processcontrol":107,"com.apple.instruments.server.services.processcontrol.capability.signal":1,"com.apple.instruments.server.services.processcontrol.feature.deviceio":103,"com.apple.instruments.server.services.processcontrolbydictionary":4,"com.apple.instruments.server.services.remoteleaks":6,"com.apple.instruments.server.services.remoteleaks.deferred":1,"com.apple.instruments.server.services.remoteleaks.immediate":1,"com.apple.instruments.server.services.sampling":11,"com.apple.instruments.server.services.sampling.deferred":1,"com.apple.instruments.server.services.sampling.immediate":1,"com.apple.instruments.server.services.screenshot":2,"com.apple.instruments.server.services.sysmontap":2,"com.apple.instruments.server.services.sysmontap.deferred":1,"com.apple.instruments.server.services.sysmontap.immediate":1,"com.apple.instruments.server.services.sysmontap.processes":1,"com.apple.instruments.server.services.sysmontap.system":1,"com.apple.instruments.server.services.sysmontap.windowed":1,"com.apple.instruments.server.services.ultraviolet.renderer":1,"com.apple.instruments.server.services.vmtracking":1,"com.apple.instruments.server.services.vmtracking.deferred":1,"com.apple.instruments.server.services.vmtracking.immediate":1,"com.apple.instruments.server.services.wireless":1,"com.apple.instruments.target.ios":130102,"com.apple.instruments.target.logical-cpus":2,"com.apple.instruments.target.mtb.denom":3,"com.apple.instruments.target.mtb.numer":125,"com.apple.instruments.target.physical-cpus":2,"com.apple.instruments.target.user-page-size":16384,"com.apple.private.DTXBlockCompression":2,"com.apple.private.DTXConnection":1,"com.apple.xcode.debug-gauge-data-providers.Energy":1,"com.apple.xcode.debug-gauge-data-providers.NetworkStatistics":1,"com.apple.xcode.debug-gauge-data-providers.SceneKit":1,"com.apple.xcode.debug-gauge-data-providers.SpriteKit":1,"com.apple.xcode.debug-gauge-data-providers.procinfo":1,"com.apple.xcode.debug-gauge-data-providers.resources":1,"com.apple.xcode.resource-control":1}},]
DEBU[0001] i5.1 c0 t:Ack mlen:16 aux_len0 paylen0
DEBU[0001] Channel open                                  channel_id=com.apple.instruments.server.services.processcontrol
DEBU[0001] adding extra env USE_PORT=8100
INFO[0001] Launching process                             bundleID=com.test.WebDriverAgentRunner.xctrunner channel_id=com.apple.instruments.server.services.processcontrol
INFO[0001] Process started successfully                  channel_id=com.apple.instruments.server.services.processcontrol pid=3115
DEBU[0001] Runner started with pid:3115, waiting for testBundleReady
DEBU[0001] Dispatching:outputReceived:fromProcess:atTime:
INFO[0001] 2021-11-22 21:00:21.297710-0500 WebDriverAgentRunner-Runner[3115:2987381] Running tests...
DEBU[0001] Dispatching:outputReceived:fromProcess:atTime:
INFO[0001] 2021-11-22 21:00:21.302611-0500 WebDriverAgentRunner-Runner[3115:2987381] Unable to load configuration data from specified path /; error: The file “System@snap-1004721” couldn’t be opened because you don’t have permission to view it.
2021-11-22 21:00:21.302695-0500 WebDriverAgentRunner-Runner[3115:2987381] XCTRunner Arguments: (
    "/var/containers/Bundle/Application/1C98CC47-614D-4417-B49B-E90EFD81AB08/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
    "-NSTreatUnknownArgumentsAsOpen",
    NO,
    "-ApplePersistenceIgnoreState",
    YES
)
DEBU[0001] Dispatching:outputReceived:fromProcess:atTime:
INFO[0001] 2021-11-22 21:00:21.302848-0500 WebDriverAgentRunner-Runner[3115:2987381] XCTRunner Environment: {
    "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
    "CA_DEBUG_TRANSACTIONS" = 0;
    "CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/F1A5C776-6F69-491B-A8EA-9919FA904D6A";
    HOME = "/private/var/mobile/Containers/Data/Application/F1A5C776-6F69-491B-A8EA-9919FA904D6A";
    LOGNAME = mobile;
    "MTC_CRASH_ON_REPORT" = 1;
    NSUnbufferedIO = YES;
    "OS_ACTIVITY_DT_MODE" = YES;
    PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
    SHELL = "/bin/sh";
    "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
    TMPDIR = "/private/var/mobile/Containers/Data/Application/F1A5C776-6F69-491B-A8EA-9919FA904D6A/tmp/";
    USER = mobile;
    "USE_PORT" = 8100;
    XCTestBundlePath = "/private/var/containers/Bundle/Application/1C98CC47-614D-4417-B49B-E90EFD81AB08/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest";
    XCTestConfigurationFilePath = "";
    XCTestSessionIdentifier = "8ab9cc4e-eae0-49dc-b47b-eaa4abcbac92";
    "XPC_FLAGS" = 0x0;
    "XPC_SERVICE_NAME" = "UIKitApplication:com.test.WebDriverAgentRunner.xctrunner[1ca3][rb-legacy]";
    "__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
}

This is where the process seems to get 'stuck'.

In a second terminal, I run iproxy 8100 8100 --udid 40xxxxxxxxxxx and afterwards perform a curl to http://localhost:8100, but get the following output:

curl: (56) Recv failure: Connection reset by peer

If I run appium and create a session with the same WebDriverAgent.xcproj that was used to generate the app that I trigger through runwda , appium starts fine and the webdriveragent starts up without issues and prints out WebDriverAgent is ready to accept commands with the ip of the device. So I believe the WebDriverAgent.ipa is not the culprit.

Not sure if running the Webdriveragent is supposed to be a supported use case for go-ios, but if anyone has any ideas, I'm all ears! Cheers!

danielpaulus commented 2 years ago

WDA is the main reason go-ios has xctest support :-D What iOS version are you running this on?

danielpaulus commented 2 years ago

PS: instead of iproxy you should be good using go-ios forward, one less binary to maintain :-D

Hcu commented 2 years ago

Ah yes, thanks for the tip :), I'm running iOS 13.1

danielpaulus commented 2 years ago

And you are using an unmodified WDA build? That is super weird, it should actually work

Hcu commented 2 years ago

The only difference made to the WDA build is the provisioning profiles used to sign it.

As I don't have a device where I can seem to get WDA fully started, just wondering what the trace output should look like for a successful WDA launch to perhaps spot where the difference occurs ?

Also this line: INFO[0001] 2021-11-22 21:00:21.302611-0500 WebDriverAgentRunner-Runner[3115:2987381] Unable to load configuration data from specified path /; error: The file “System@snap-1004721” couldn’t be opened because you don’t have permission to view it.

Is this expected output or could this be somehow related ?

danielpaulus commented 2 years ago

Can you run dproxy, and get me a dump of the xcode test execution that works, and one with the broken device? That way I can look into what is going on.

danielpaulus commented 2 years ago

I just merged a few WDA fixes. Please try again with the latest release.

Hcu commented 2 years ago

Thanks Daniel, currently no longer have access to the devices, but as soon as I do, I will give the latest version a go!