alibaba / tidevice

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

tidevice crashreport导出bug #229

Open lycfr opened 2 years ago

lycfr commented 2 years ago
1111@MacBook-Pro-3 model % tidevice crashreport /Users/1111/Desktop/model
[I 220615 18:13:13 _sync:379] copying /Analytics-90Day-2022-04-30-080037.000.ips.ca.synced -> /Users/1111/Desktop/model/Analytics-90Day-2022-04-30-080037.000.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /Merak-2022-06-13-171110.ips -> /Users/1111/Desktop/model/Merak-2022-06-13-171110.ips
[I 220615 18:13:13 _sync:379] copying /Analytics-Journal-Never-2022-04-23-080009.0002.ips.ca.synced -> /Users/1111/Desktop/model/Analytics-Journal-Never-2022-04-23-080009.0002.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-01-205339.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-01-205339.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-20-150756.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-20-150756.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-04-144804.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-04-144804.ips
[I 220615 18:13:13 _sync:379] copying /Merak-2022-05-10-163125.ips -> /Users/1111/Desktop/model/Merak-2022-05-10-163125.ips
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-02-164940.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-02-164940.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-05-174413.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-05-174413.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-04-21-172352.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-04-21-172352.ips
[I 220615 18:13:13 _sync:379] copying /gpuEvent-AIEngineDemo-2022-04-28-191048.ips -> /Users/1111/Desktop/model/gpuEvent-AIEngineDemo-2022-04-28-191048.ips
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-05-182024.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-05-182024.ips
[I 220615 18:13:13 _sync:379] copying /stacks+routined-2022-06-02-144844.ips -> /Users/1111/Desktop/model/stacks+routined-2022-06-02-144844.ips
[I 220615 18:13:13 _sync:379] copying /Analytics-90Day-2022-04-28-080008.0003.ips.ca.synced -> /Users/cfr/Desktop/model/Analytics-90Day-2022-04-28-080008.0003.ips.ca.synced
[I 220615 18:13:13 _sync:379] copying /JetsamEvent-2022-05-20-150741.ips -> /Users/1111/Desktop/model/JetsamEvent-2022-05-20-150741.ips
[I 220615 18:13:13 __main__:366] Done
1111@MacBook-Pro-3 model % tidevice crashreport -l
[I 220615 18:15:10 _crash:23] List of crash logs
[I 220615 18:15:10 _crash:27] No crashes

执行tidevice crashreport 指令导出log时,不带-k参数

看源码,好像是到-k true的时候会触发同步清除日志; 我执行不带-k的时候也会被清除,这是bug吗?

另外这个导出crash文件是全局导出是吗?支持指定单个或者多个文件导出吗?

lycfr commented 2 years ago
1111@MacBook-Pro-3 model % tidevice version
tidevice version 0.8.1
lycfr commented 2 years ago
        if src.as_posix() == "/" or finfo.is_dir():
            dst.mkdir(exist_ok=True)
            for fname in self.listdir(src):
                self.pull(src.joinpath(fname), dst.joinpath(fname), remove=remove)
            # try:
            #     self.crash_list.afc.rmdir(src)
            # except:
            #     pass

这边代码try...except注释不会删除了