Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Is is possible to launch and debug one of my iOS apps 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 figure that since it can be done with Xcode that it may be possible to debug strictly from within the terminal.

like image 550
Dor Avatar asked Nov 14 '14 16:11

Dor


1 Answers

ios-deploy can do that.

brew install node
npm install -g ios-deploy

ios-deploy -d -W -b path/to/foo.app

It will copy the app bundle to your connected device, launch the app, and start an lldb session for the app.

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

like image 56
tboyce12 Avatar answered Oct 23 '22 08:10

tboyce12