Skip to content

bug-执行instruments.app_process_list方法会崩溃 #61

Closed
@linmscat

Description

代码如下:
app_list = self._dev.instruments.app_list()
processes = next(self._dev.instruments.app_process_list(app_list))
print(processes)
执行报如下错误:

..\..\..\..\venv\lib\site-packages\tidevice\_instruments.py:709: in app_process_list
    info = exefile2appinfo(app_exepath, app_infos)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

exe_abspath = '/System/Library/PrivateFrameworks/MapsSupport.framework/geocorrectiond'
app_infos = [{'BundlePath': '/private/var/containers/Bundle/Application/045FE01F-8BE8-466E-9D5B-21AC78B8BE07/Weather.app/PlugIns/W...eIdentifier': 'com.apple.DiagnosticsService', 'ContainerBundlePath': '/Applications/DiagnosticsService.app', ...}, ...]

    def exefile2appinfo(exe_abspath: str, app_infos: List[dict]):
        for info in app_infos:
>           path = info['Path'] + "/" + info['CFBundleExecutable']
E           KeyError: 'Path'

..\..\..\..\venv\lib\site-packages\tidevice\_instruments.py:699: KeyError

@codeskyblue

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions