How to start debugserver on an iPhone from CLI?

Hello,


I would like to debug my apps using lldb from the command line by starting the remote session on my iPhone.


It works perfectly when debugging on the simulator. However, to connect to a remote server it is required to first start the server on the device side.


Xcode somehow performs this operation, but I wasn't able to find any CLI tool (browsed all /Applications/Xcode.app/Contents/Developer/usr/bin tools) to do that.


Here is also a very similar topic created by someone else:

https://stackoverflow.com/questions/72924217/is-it-possible-to-launch-an-iphone-debugserver-without-jailbreaking-using-lldb-o


Is it possible to do that or does Xcode use some protected protocol to start the server?

Posted on Feb 17, 2024 4:21 AM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to start debugserver on an iPhone from CLI?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.