Skip to content

调用电池信息报错 #177

@liyuefeng

Description

@liyuefeng

Smartphone (please complete the following information):

  • Device: [iPhonex]
  • OS: [iOS16.7.0]
  • Pyidevice Version [2.3.2]
  • mac电脑:Apple M4 Pro, mac os sequoia 版本15.3.1
    注意: 其他的mac电脑没有问题,就这个mac有问题

代码复现示例示例:
from ios_device.servers.diagnostics_relay import DiagnosticsRelayService

def test_get_battery():
diag = DiagnosticsRelayService(udid='xxxxxxxxxxxxx')
battery_info = diag.get_battery()
return battery_info

if name == "main":
info = test_get_battery()
print(info)

报错:
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 28, column 15
Describe the bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions