Ios13使用debugserver出现对问题

使用 LLDB+debugserver 在ios13设备上调试出现对问题
关于怎么提取 debugserver 可自行百度或留言讨论

  1. rejecting incoming connection from xxxxx
    这个问题把 debugserver *:port 改为 127.0.0.1:port 尝试
    我使用的是
    debugserver 127.0.0.1:1111 -a xxx

2.附加之后目标程序闪退,这个问题是权限问题,ios13 可以参考我的权限文件

引用

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>task_for_pid-allow</key>
	<true/>
	<key>run-unsigned-code</key>
	<true/>
	<key>platform-application</key>
	<true/>
	<key>get-task-allow</key>
	<true/>
	<key>com.apple.frontboard.launchapplications</key>
	<true/>
	<key>com.apple.frontboard.debugapplications</key>
	<true/>
	<key>com.apple.springboard.debugapplications</key>
	<true/>
	<key>com.apple.backboardd.launchapplications</key>
	<true/>
	<key>com.apple.private.memorystatus</key>
	<true/>
	<key>com.apple.private.cs.debugger</key>
	<true/>
	<key>com.apple.backboardd.debugapplications</key>
	<true/>
	<key>com.apple.private.logging.diagnostic</key>
	<true/>
</dict>
</plist>

iOS-debugserver

lldb的话推荐使用vscode的扩展iOSRE,鼠标点一下就能用

插件名称是叫哪个
我查到有几个
1.LLDB VSCode
2.Native Debug
3.CodeLLDB

扩展叫iOSre Extension

ok,找到了
这个工具需要配置一些环境
我这里还差一个sshpass,它引导使用
brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
但是brew 一直卡在 Updating Homebrew…

sshpass 还有其他的方式安装么

当然有

wget http://sourceforge.net/projects/sshpass/files/sshpass/1.06/sshpass-1.06.tar.gz 

tar xvzf sshpass-1.06.tar.gz

cd sshpass-1.06 && ./configure && make&&make install

感谢
整个环境都装好了
那个插件已经运行起来了
这个扩展工具很赞,集成了对设备操作的大部分命令集合
非常感谢分享