iOS iphone will log in terminal output

Source: Internet
Author: User

For the emulator, its log file at the terminal is located at: ~/library/logs/coresimulator/c4b94ba6-ef08-4ad2-ae7d-1a3a2e2ac545/system.log

For real machines:

Here's another tip using the Great Libimobiledevice library http://www.libimobiledevice.org/, originally built to Mana GE IOS devices on Linux. This method shows your can view the log output (e.g. what do I see in Xcode if running in debug mode) on a NY app, whether it's an appstore build or a adhoc build. Some Apps is more talkative than others-it all depends on what careful the developers were to remove log messages in Release builds. I Find this is useful for debugging issues in release versions of our apps. If a user reports a sequence of actions causes a crash, you can try this out while watching the log from your app.
Here's how:

    • Grab the Libimobiledevice binary for Mac OS X from my github account athttps://github.com/benvium/libimobiledevice-macosx/ Zipball/master
    • Follow the install instructions here:
      Https://github.com/benvium/libimobiledevice-macosx/blob/master/README.md
Connect your device, Open up Terminal.app and type: IdevicesyslogUp pops a real-time display of the device ' s system log.

With it being a console app, you can filter the log using UNIX commands, such as grep


For instance, see all logs messages from a particular app:

Idevicesyslog | grep myappname

iOS iphone will log in terminal output

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.