Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ios-deploy --debug without specifying any app #553

Open
6 of 9 tasks
hiraditya opened this issue Apr 5, 2022 · 1 comment
Open
6 of 9 tasks

Use ios-deploy --debug without specifying any app #553

hiraditya opened this issue Apr 5, 2022 · 1 comment

Comments

@hiraditya
Copy link

Include the command line arguments you used for ios-deploy.

$ ios-deploy --debug

Expected behavior

I'd like this to launch a debug session such that I can use lldb to attach to any PID, launch an existing (already installed) app and debug.

Actual behavior.

$ ios-deploy --debug
2022-04-05 07:09:57.961 ios-deploy[91234:1321025] Usage: ios-deploy [OPTION]...
... shows help menu...

Steps to reproduce the problem

System Specs

Please run the commands below in your Terminal.app and include it in the issue. Check when done and include results below.

  • 1. system_profiler SPSoftwareDataType
  • 2. ios-deploy -V
  • 3. xcodebuild -version
  • 4. xcode-select --print-path
  • 5. gcc --version
  • 6. lldb --version
  • If using NodeJS/npm
    • 7. npm -v
    • 8. node -v
$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: macOS 12.3 (21E230)
      Kernel Version: Darwin 21.4.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Secure Virtual Memory: Enabled
      System Integrity Protection: Disabled

$  ios-deploy -V
1.11.4

$ xcodebuild -version
Xcode 13.0
Build version 13A233

$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

$ gcc --version
Apple clang version 13.0.0 (clang-1300.0.29.3)

$ lldb --version
lldb-1300.0.32.2
Swift version 5.5-dev

@ivanhernandez13
Copy link

You can get most of the way there with ios-deploy --nolldb. That will start debugserver on the ios device and print a port to the console. To get a working debug session you will need to open a separate terminal, start lldb, and run process connect connect://localhost:${DEBUGSERVER_PORT} to connect to the device.

To get this working using just ios-deploy --debug you could probably update LLDB_PREP_CMDS to be conditional on whether a bundle was also provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants