codeskyblue / tidevice3

wrapper for pymobiledevice3 to make it more easy to use.
MIT License
176 stars 33 forks source link

当前支持IOS17设备与Mac连接同一个wifi后,与设备进行命令交互吗 #3

Open HaoWShi opened 7 months ago

codeskyblue commented 7 months ago

试试喽

krishtoautomate commented 6 months ago

home@B02SAV22 ~ % t3 runwda --bundle-id 'com.facebook.WebDriverAgentRunner.xctrunner' 2024-02-17 21:48:54 B02SAV22 tidevice3.cli.runwda[36387] INFO forwarder started, listen on 8100 2024-02-17 21:48:55 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO make channel dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface 2024-02-17 21:48:55 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO conn1 handshake xcode version: 36 2024-02-17 21:48:55 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO conn2 handshake xcode version: 36 2024-02-17 21:48:56 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO ProcessOutput: OutputReceivedEvent(pid=2242, date=None, message='2024-02-17 21:48:56.154761-0500 WebDriverAgentRunner-Runner[2242:914767] [Default] Running tests...\n') 2024-02-17 21:48:56 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO Runner started with pid:2242, waiting for testBundleReady 2024-02-17 21:48:57 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36387] INFO authorizing test session for pid 2242 successful True

But not able to access 8100 through localhost even with iproxy

krishtoautomate commented 6 months ago

home@B02SAV22 ~ % t3 runwda 2024-02-17 22:00:52 B02SAV22 tidevice3.cli.runwda[36985] INFO forwarder started, listen on 8100 2024-02-17 22:00:53 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO make channel dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface 2024-02-17 22:00:53 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO conn1 handshake xcode version: 36 2024-02-17 22:00:53 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO conn2 handshake xcode version: 36 2024-02-17 22:00:53 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO ProcessOutput: OutputReceivedEvent(pid=2262, date=None, message='2024-02-17 22:00:53.980004-0500 WebDriverAgentRunner-Runner[2262:920731] [Default] Running tests...\n') 2024-02-17 22:00:53 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO Runner started with pid:2262, waiting for testBundleReady 2024-02-17 22:00:54 B02SAV22 pymobiledevice3.services.dvt.testmanaged.xcuitest[36985] INFO authorizing test session for pid 2262 successful True 2024-02-17 22:01:23 B02SAV22 pymobiledevice3.tcp_forwarder[36985] ERROR failed to connect to port: 8100 2024-02-17 22:01:24 B02SAV22 pymobiledevice3.tcp_forwarder[36985] ERROR failed to connect to port: 8100 2024-02-17 22:01:26 B02SAV22 pymobiledevice3.tcp_forwarder[36985] ERROR failed to connect to port: 8100 2024-02-17 22:01:27 B02SAV22 pymobiledevice3.tcp_forwarder[36985] ERROR failed to connect to port: 8100 2024-02-17 22:01:32 B02SAV22 pymobiledevice3.tcp_forwarder[36985] ERROR failed to connect to port: 8100

codeskyblue commented 6 months ago

别光贴日志呀,具体啥问题

krishtoautomate commented 6 months ago

sorry about posting log only.

executed command t3 runwda --bundle-id 'com.facebook.WebDriverAgentRunner.xctrunner' to start wda which is pre-installed in device. but unable to access wda endpoint : http://localhost:8100/status

codeskyblue commented 6 months ago

直接使用手机的IP:8100可以连上吗?

krishtoautomate commented 6 months ago

Tried but no luck. Didnt work with http://device-ipaddrss:8100/status