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