咋关闭呢
已经投入使用了,速度很快
果然,感谢!
这个 12.0 的设备升级到 14.4 之后,启动 wda 报错:
58:14 _device:518] ProductVersion: 14.4
[I 210301 15:58:14 _device:497] Download https://tool.appetizer.io/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/14.4.zip -> /Users/chengming/.tidevice/device-support/14.4.zip
[I 210301 15:58:15 _device:497] Download https://github.com/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/14.4.zip -> /Users/chengming/.tidevice/device-support/14.4.zip
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 400, in start_service
return self._unsafe_start_service(name)
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 415, in _unsafe_start_service
raise MuxServiceError("Could not start service: {0}! {2}".format(
tidevice.exceptions.MuxServiceError: Could not start service: com.apple.testmanagerd.lockdown.secure! Remember that you have to mount the Developer disk image on your device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 550, in _request_developer_image_dir
self._urlretrieve(mirror_url, image_zip_path)
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 502, in _urlretrieve
r.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://tool.appetizer.io/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/14.4.zip
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/tidevice", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/site-packages/tidevice/__main__.py", line 407, in main
actions[args.subparser](args)
File "/usr/local/lib/python3.9/site-packages/tidevice/__main__.py", line 203, in cmd_xctest
d.xctest(args.bundle_id, logger=setup_logger(level=logging.INFO))
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 921, in xctest
x1 = self._connect_testmanagerd_lockdown()
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 741, in _connect_testmanagerd_lockdown
conn = self.start_service(
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 402, in start_service
self.mount_developer_image()
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 585, in mount_developer_image
with self._request_developer_image_dir() as _dir: #, signature_path:
File "/usr/local/Cellar/python@3.9/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/contextlib.py", line 117, in __enter__
return next(self.gen)
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 554, in _request_developer_image_dir
self._urlretrieve(origin_url, image_zip_path)
File "/usr/local/lib/python3.9/site-packages/tidevice/_device.py", line 502, in _urlretrieve
r.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/14.4.zip
无法下载:https://github.com/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/14.4.zip
SignIdentity 是 Apple Development: xxx (GC2H3795Y8)
也是使用的 12.0
$ tidevice -u 5ef7f64cacb615d9172ebf0fa4377e7b172af89f xctest -B com.facebook.WebDriverAgentRunner.xctrunner
[I 210226 17:25:01 _device:909] BundleID: com.facebook.WebDriverAgentRunner.xctrunner
[I 210226 17:25:01 _device:911] DeviceIdentifier: xxx
[I 210226 17:25:02 _device:773] SignIdentity: xxx
[I 210226 17:25:02 _device:840] Launch 'com.facebook.WebDriverAgentRunner.xctrunner' pid: 257
[I 210226 17:25:02 _device:1003] ProductVersion: 12.0
[W 210226 17:25:02 _instruments:560] unexpected error: socket connection broken
[W 210226 17:25:02 _device:1033] xctrunner quited
貌似 tidevice 无法在低版本的 iOS 设备上启动,发现不止一个设备了,请问是这样吗?
不就是对 wda 封装了一层吗,有啥大惊小怪
就是 UIAutomator2 的 app 挂了,可能被系统杀死了吧,比如某些手机有节能模式,发现 UIAutomator2 耗电太多,而且又是后台进程,容易被干死
测试了下,发现是 app 的包名在手机上不存在,启动 app 也能成功,但是会耗时很长时间,包名正确很快就可以启动了
我发现 tidevice 启动 wda 后,直接调用 wda 的接口(如启动 app、获取控件树、控件查找等),在第一次的时候回特别慢,有时候多达五六分钟,难以忍受(health 检查会很快返回),请问您知道吗,有什么优化的点吗?
用这个工具对 wda 的.app 文件进行签名
问下,wda 是怎么打包成 ipa 的?
windows 上应该要用 adb forward 了吧
是个好思路,我研究下
今天发现了 tidevice 的神器,你这又给我一个神器,我是你们老板吗
不用说,早就 star 点赞转发三连了
头一次听说这个云
神器
有独立包吗?
真赞啊,真及时,正想要这个功能!!!
不支持 remote 连接的设备吧
libimobiledevice 已不再单纯,难以打最新的依赖包,需要依赖的库太多了:
dependency_libs=' -L/usr/local/Cellar/gnutls/3.6.15/lib -lgnutls -L/usr/local/Cellar/libtasn1/4.16.0/lib -ltasn1 -L/usr/local/Cellar/libplist/2.2.0/lib -L/usr/local/Cellar/libusbmuxd/2.0.2/lib -lgcrypt -lusbmuxd-2.0 -lplist-2.0'
你这孩子我们救不了
应该没别的办法了
已制作好 mac 下的 binary 包,方便大家下载: