YueChen-C / py-ios-device

IOS Professional Performance Testing Tool . You can get CPU, GPU, Memory , Lifecycle and other metrics from real iOS devices . IOS 专业性能测试工具
GNU General Public License v3.0
633 stars 179 forks source link

iOS 17 Device Not Supporting #134

Closed tademmahesh closed 3 months ago

tademmahesh commented 3 months ago

Step1 sudo python3 -m pymobiledevice3 remote start-tunnel UDID: 00000030-0000000840E50402E ProductType: iPhone14,9 ProductVersion: 17.3 Interface: utun4 Protocol: TunnelProtocol.QUIC RSD Address: fd63:5b80:4ae3::1 RSD Port: 64060 Use the follow connection option: --rsd fd63:5b80:4ae3::1 64060

Step2 Input I have updated the host and port and executed
from ios_device.remote.remote_lockdown import RemoteLockdownClient from ios_device.servers.Instrument import InstrumentServer from demo.instrument_demo.sysmontap import sysmontap

host = 'fd63:5b80:4ae3::1' port = 64060

with RemoteLockdownClient((host, port)) as rsd: rpc = InstrumentServer(rsd).init() sysmontap(rpc) rpc.stop()

Output start None [ { "PerCPUUsage": [ { "CPU_NiceLoad": 0.0, "CPU_SystemLoad": -1.0, "CPU_TotalLoad": 0.0, "CPU_UserLoad": -1.0 },

Step3 python3 -m pymobiledevice3 developer dvt ls / --rsd fdc7:e4b5:d571::1 64062

Step4 pyidevice enable_developer_mode --mode=2 enable_developer_mode its enabled

Step5 pyidevice instruments display --udid=00000030-0000000840E50402E

getting same error which is ios_device.util.exceptions.StartServiceError: Unable to start service='com.apple.instruments.remoteserver.DVTSecureSocketProxy' - InvalidService Any i am missing or can give me the solution ?

YueChen-C commented 3 months ago

IOS 17 does not support commands

YueChen-C commented 3 months ago

use code

 with RemoteLockdownClient((host, port)) as rsd:
        rpc = InstrumentServer(rsd).init()
        graphics_display(rpc)
        rpc.stop()
YueChen-C commented 3 months ago

Soon I will support commands