Coder Social home page Coder Social logo

Comments (12)

codeskyblue avatar codeskyblue commented on May 3, 2024 1

2b38988 随便写写

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

类似Mac的Console 吗?

from taobao-iphone-device.

canfeng11 avatar canfeng11 commented on May 3, 2024

是的,mac的控制台难用的一言难尽,想找个替代的,貌似都没有,使用libimobiledevice工具里面提供的工具查看log的,貌似也是各种不顺利,期望这个工具能够查看log,摆脱每次使用控制台的烦劳。

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

我之前都是一直在用 自带的那个Console.app, 感觉还行。你可以分享下你的一些 idevicesyslog的使用经验吗? 我看看怎么在 tidevice中改进

from taobao-iphone-device.

canfeng11 avatar canfeng11 commented on May 3, 2024

全是坑:
1、idevicesyslog 首先安装启动是个问题,当每次苹果系统大版本更新的时候,你需要更新command tools,更新完成之后还要用最新的代码编译构建
2、使用过程中感觉也有问题,用着用着会断开,不知道啥问题

from taobao-iphone-device.

electricbubble avatar electricbubble commented on May 3, 2024
from tidevice import _usbmux
from tidevice import Device

if __name__ == '__main__':
    um = _usbmux.Usbmux()
    devList = um.device_list()
    for dev in devList:
        print(dev)

    dev = Device(devList[0]["SerialNumber"], um)
    logService = dev._unsafe_start_service("com.apple.syslog_relay")
    while True:
        buf = logService.recvall(512)
        print(buf.decode(), end="")

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024
from tidevice import _usbmux
from tidevice import Device

if __name__ == '__main__':
    um = _usbmux.Usbmux()
    devList = um.device_list()
    for dev in devList:
        print(dev)

    dev = Device(devList[0]["SerialNumber"], um)
    logService = dev._unsafe_start_service("com.apple.syslog_relay")
    while True:
        buf = logService.recvall(512)
        print(buf.decode(), end="")

你怎么这么优秀

from taobao-iphone-device.

electricbubble avatar electricbubble commented on May 3, 2024

😂看了好几天源码了。。

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

@electricbubble 看来在新公司混的挺开的嘛

from taobao-iphone-device.

electricbubble avatar electricbubble commented on May 3, 2024

@electricbubble 看来在新公司混的挺开的嘛

😂正好这几天偷摸着看的。。

from taobao-iphone-device.

codeskyblue avatar codeskyblue commented on May 3, 2024

@electricbubble 上面那个 crashlog你要不要也搞搞

from taobao-iphone-device.

electricbubble avatar electricbubble commented on May 3, 2024

@electricbubble 上面那个 crashlog你要不要也搞搞

😥我还不晓得哪些情况会产生 crash log。。。
需要先认识认识这日志长啥样子😂

from taobao-iphone-device.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.