錯誤場景
通過USB訪問越獄手機(jī),調(diào)試debugserver的時候出現(xiàn)了
xxx:/Developer/usr/bin root# ./debugserver *:3458 -a xxx
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-360.0.26.3
for arm64.
Attaching to process xxxx...
error: failed to attach to process named: "" unable to start the exception thread
Exiting.
由于在/Developer/usr/bin中的debugserver只能調(diào)試自己xcode安裝的app所以你需要將debugserver修改一下塌计。
具體如下
應(yīng)該創(chuàng)建一個
使用命令
codesign -s - --entitlements youname.plist -f debug-server
debugserver: replacing existing signature
然后將其scp到手機(jī)的/usr/bin 目錄下,在任何路徑哦都可以使用這個修改過的debugserver
? xxx $ scp -P 3456 -r debugserver root@localhost:/usr/bin/debugserver
debugserver 100% 4599KB 17.3MB/s 00:00
以上使用USB訪問僻孝,也可使用ip訪問,如有問題請查看
IPhone一起玩越獄 -(五)- ssh遠(yuǎn)程登錄Iphone
IPhone一起玩越獄 -(六)- USB登錄Iphone用戶
xxx:~ root# debugserver *:3458 -a xxx
debugserver-@(#)PROGRAM:debugserver PROJECT:debugserver-360.0.26.3
for arm64.
Attaching to process xxxx...
Listening to port 3458 for a connection from *...
debugserver正常連接App成功