alibaba / tidevice

tidevice can be used to communicate with iPhone device
MIT License
2.42k stars 457 forks source link

WDA应用从手机删除以后,通过tidevice的app_list()接口仍会返回WDA的bundleID #44

Open linmscat opened 3 years ago

linmscat commented 3 years ago
  1. 操作步骤:
    • 将WDA应用从手机中删除;
    • 脚本中调用tidevice的app_list()接口获取手机应用的bundleID的列表: ''' device = tidevice.Device(self.get_udid()) app_list = device.instruments.app_list() '''
  2. 异常现象: app_list中仍有卸载掉的WDA应用的bundleID
  3. 期望结果: app_list中不出现卸载掉的WDA应用的bundleID @zy02636 @codeskyblue @alibaba-oss @373743261 @pengchenglin
codeskyblue commented 3 years ago

嗯,试了下,是有这个问题。不过用另外一个接口看起来可以

d = tidevice.Device()
for v in d.installation.iter_installed():
    print(v['CFBundleName'])