How to debug iOS app with lldb on command line on device without Xcode

Is it possible to run and debug one of my iOS applications in development on an iPhone (or other iOS device) without using Xcode?

I would like to do this from the command line using lldb.

I believe that this can be done with Xcode, which can be debugged strictly from inside the terminal.

+5
source share
2 answers

ios-deploy can do this.

brew install node npm install -g ios-deploy ios-deploy -d -W -b path/to/foo.app 

It will copy the application package to the connected device, launch the application, and start the lldb session for the application.

I just tested it right now. OSX 10.12.6, iOS 11.0.2, Xcode 9.0.1.

+2
source

you can debug your application without using xcode on a jailbroken device, all you need to do is add rights to the debug server, if you want to debug applications that you have not created, there is a great explanation here http://iphonedevwiki.net/index .php / Debugserver , as soon as you connect to the process on the device, just start lldb on your computer and debug

0
source

Source: https://habr.com/ru/post/1206893/


All Articles