• Home
  • About
    • Rick photo

      Rick

      Moon is a minimal, one column jekyll theme for your blog.

    • Learn More
    • Email
  • Posts
    • All Posts
    • All Tags
  • Projects

动态调试

24 Jan 2018

Reading time ~1 minute

动态调试


1、在手机文件中找到 /developer/usr/bin中debugserver文件。
2、将其考到mac签名权限 ldid -e debugserver > debugserver.entitlement
3、编辑文件该文件权限,添加
get-task-allow yes
task_for_pid-allow yes
4、ldid -Sdebugserver.entitlements debugserver
5、添加执行权限 chmod +x debugserver
6、将其放到手机目录 /usr/bin
7、在手机命令行debugserver *:2222 -a WeChat

mac
命令行输入lldb

1、启动iproxy 22222 2222 将mac本地端口22222映射到iPhone的2222
process connect connect://127.0.0.1:22222



blog Share Tweet +1