smart-test-ti / SoloX

💯SoloX - Real-time collection tool for Android/iOS performance data.(Android性能测试android performance\iOS性能测试ios performance\移动端性能测试mobile performance\APP性能测试app performance\app性能测试工具)
https://smart-test-ti.github.io/solox
MIT License
1.02k stars 183 forks source link

不懂就问:我的 iOS 设备除了电池,其余信息均采集不了,请问是哪里设置错了嘛? #254

Open JIUJIUs opened 10 months ago

JIUJIUs commented 10 months ago

SoloX :2.8.6 Python :3.10.11 System:WIndows 11 Browser:Chrome Device:iPhone Xs Max;iPhone11,6;iOS 15.7.1; iPhone 15 Pro Max;iPhone16,2;iOS 17.2.1;

image

image

rafa0128 commented 10 months ago

主要看终端报错日志,不支持ios17的

JIUJIUs commented 10 months ago

主要看终端报错日志,不支持ios17的

好,我用 iPhone Xs Max 给你份日志,请问怎么获取?

JIUJIUs commented 10 months ago

主要看终端报错日志,不支持ios17的

是不是这个?

`192.168.10.209 - - [22/Dec/2023 11:14:56] "GET /apm/fps?model=normal&platform=iOS&pkgname=cn.adidas.confirmed.app&device=00008020-0019583622D8002E&surv=false&=1703214845227 HTTP/1.1" 200 - 192.168.10.209 - - [22/Dec/2023 11:14:56] "GET /apm/battery?platform=iOS&device=00008020-0019583622D8002E&=1703214845241 HTTP/1.1" 200 - 192.168.10.209 - - [22/Dec/2023 11:14:57] "GET /apm/battery?platform=iOS&device=00008020-0019583622D8002E&_=1703214845243 HTTP/1.1" 200 - [E 231222 11:14:57 apis:254] get memory data failed [E 231222 11:14:57 apis:255] ImageMountFailed Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice_device.py", line 483, in start_service return self._unsafe_start_service(name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice_device.py", line 502, in _unsafe_start_service raise MuxServiceError(error) tidevice.exceptions.MuxServiceError: InvalidService

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\view\apis.py", line 251, in getMEM
    totalPass, nativePass, dalvikPass = mem.getProcessMem()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 172, in getProcessMem
    totalPass, nativePass, dalvikPass = self.getAndroidMem() if self.platform == Platform.Android else self.getiOSMem()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 165, in getiOSMem
    totalPass = round(float(apm.getPerformance(apm.memory)), 2)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 416, in getPerformance
    perf_value = perf.start(self.pkgName, callback=self.callback)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\_iosPerf.py", line 320, in start
    self._rp = RunningProcess(self._d, bundle_id)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\_iosPerf.py", line 36, in __init__
    self._ins = d.connect_instruments()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 792, in connect_instruments
    conn = self.start_service(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 485, in start_service
    self.mount_developer_image()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 662, in mount_developer_image
    self.imagemounter.mount(image_path, signature_path)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 139, in mount
    return self.mount_fileobj(image_reader, image_size, signature_content)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 182, in mount_fileobj
    self._check_error(ret)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 123, in _check_error
    raise MuxError(ret['Error'])
tidevice.exceptions.MuxError: ImageMountFailed`
rafa0128 commented 10 months ago

换mac测ios吧,windows这个通信不稳定。不过如果又看到类似https://tool.appetizer.io/JinjunHan/iOSDeviceSupport/raw/master/DeviceSupport/17.0.zip下载失败的日志,就是不支持这个系统

JIUJIUs commented 10 months ago

换mac测ios吧,windows这个通信不稳定。不过如果又看到类似https://tool.appetizer.io/JinjunHan/iOSDeviceSupport/raw/master/DeviceSupport/17.0.zip下载失败的日志,就是不支持这个系统

收到!

lezhi12 commented 8 months ago

主要看终端报错日志,不支持ios17的

是不是这个?

`192.168.10.209 - - [22/Dec/2023 11:14:56] "GET /apm/fps?model=normal&platform=iOS&pkgname=cn.adidas.confirmed.app&device=00008020-0019583622D8002E&surv=false&=1703214845227 HTTP/1.1" 200 - 192.168.10.209 - - [22/Dec/2023 11:14:56] "GET /apm/battery?platform=iOS&device=00008020-0019583622D8002E&=1703214845241 HTTP/1.1" 200 - 192.168.10.209 - - [22/Dec/2023 11:14:57] "GET /apm/battery?platform=iOS&device=00008020-0019583622D8002E&_=1703214845243 HTTP/1.1" 200 - [E 231222 11:14:57 apis:254] get memory data failed [E 231222 11:14:57 apis:255] ImageMountFailed Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice_device.py", line 483, in start_service return self._unsafe_start_service(name) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice_device.py", line 502, in _unsafe_start_service raise MuxServiceError(error) tidevice.exceptions.MuxServiceError: InvalidService

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\view\apis.py", line 251, in getMEM
    totalPass, nativePass, dalvikPass = mem.getProcessMem()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 172, in getProcessMem
    totalPass, nativePass, dalvikPass = self.getAndroidMem() if self.platform == Platform.Android else self.getiOSMem()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 165, in getiOSMem
    totalPass = round(float(apm.getPerformance(apm.memory)), 2)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\apm.py", line 416, in getPerformance
    perf_value = perf.start(self.pkgName, callback=self.callback)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\_iosPerf.py", line 320, in start
    self._rp = RunningProcess(self._d, bundle_id)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\solox\public\_iosPerf.py", line 36, in __init__
    self._ins = d.connect_instruments()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 792, in connect_instruments
    conn = self.start_service(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 485, in start_service
    self.mount_developer_image()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_device.py", line 662, in mount_developer_image
    self.imagemounter.mount(image_path, signature_path)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 139, in mount
    return self.mount_fileobj(image_reader, image_size, signature_content)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 182, in mount_fileobj
    self._check_error(ret)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\tidevice\_imagemounter.py", line 123, in _check_error
    raise MuxError(ret['Error'])
tidevice.exceptions.MuxError: ImageMountFailed`

感觉从日志上看,是ImageMountFaild,尝试去user目录下找到".tidevice\device-support"目录,看看里面有没有15的image(比如15.xx.zip),如果没有,那就是这个原因导致的mount失败,下载一个15的镜像放到这个目录里,再执行solox试试还会不会出错