electricbubble / gidevice

communicate with iOS devices implemented with Golang
MIT License
274 stars 68 forks source link

receive packet: plist: type mismatch: tried to decode plist type `array' into value of type #29

Closed ZhouYixun closed 2 years ago

ZhouYixun commented 2 years ago

在开发新的service模块,但是用LockdownBasicResponse解析会有问题,应该是要用自定义的response plist结构解析,但是没法知道原本的xml结构是怎样,有办法吗?

ZhouYixun commented 2 years ago

image

electricbubble commented 2 years ago

可开启 debug 模式,会打印所有的请求和响应

giDevice.SetDebug(true, true)
ZhouYixun commented 2 years ago

可开启 debug 模式,会打印所有的请求和响应

giDevice.SetDebug(true, true)

我试试

ZhouYixun commented 2 years ago
giDevice.SetDebug(true, true)

同样是乱码

electricbubble commented 2 years ago

https://github.com/electricbubble/gidevice/blob/41fd114a5e7cbaa5ce2f1c3dc66281cab7b75c6b/pkg/libimobiledevice/lib.go#L9-L15

要么使用了错误的 Packet

或者需要实现新的 Packet

ZhouYixun commented 2 years ago

已解决,返回原来不是plist结构

ZhouYixun commented 2 years ago

https://github.com/electricbubble/gidevice/blob/41fd114a5e7cbaa5ce2f1c3dc66281cab7b75c6b/pkg/libimobiledevice/lib.go#L9-L15

要么使用了错误的 Packet

或者需要实现新的 Packet

嗯嗯是的