├── 7.0 └── debugserver ├── Readme.md └── entitlements.plist /7.0/debugserver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heardrwt/ios-debugserver/a26ac3f905031fcec3903f0102ed9bcc0281c04c/7.0/debugserver -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | #Remote Debugging iOS Apps with LLDB 2 | 3 | Install Xcode.app 4 | 5 | ### New device setup 6 | ``` 7 | # copy debug server to device 8 | scp 7.0/debugserver root@rPad.local:~/ 9 | 10 | # connect to device 11 | ssh root@rPad.local 12 | 13 | ``` 14 | 15 | ## on device commands 16 | ``` 17 | # get a list of installed apps 18 | ~/debugserver --applist 19 | 20 | # start the debugserver (on port 1234) 21 | ~/debugserver *:1234 /var/mobile/Applications/*/*.app/Twitter 22 | ``` 23 | 24 | ## host commands (lldb) 25 | ``` 26 | lldb 27 | 28 | platform select remote-ios 29 | process connect connect://rPad.local:1234 30 | 31 | ``` 32 | 33 | ## source 34 | [https://github.com/llvm-mirror/lldb/tree/master/tools/debugserver](https://github.com/llvm-mirror/lldb/tree/master/tools/debugserver) 35 | 36 | # Work required for new iOS versions 37 | ``` 38 | # mount the developer diskimage 39 | hdiutil attach /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.0/DeveloperDiskImage.dmg 40 | 41 | # overwrite debugserver entitlements 42 | cp /Volumes/DeveloperDiskImage/usr/bin/debugserver ./7.0/ 43 | 44 | codesign -s - --entitlements entitlements.plist -f 7.0/debugserver 45 | ``` 46 | -------------------------------------------------------------------------------- /entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.springboard.debugapplications 6 | 7 | run-unsigned-code 8 | 9 | get-task-allow 10 | 11 | task_for_pid-allow 12 | 13 | 14 | 15 | --------------------------------------------------------------------------------