-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# XcodeRootDebug | ||
|
||
[English](https://github.com/lemon4ex/XcodeRootDebug/blob/main/README.md) | ||
|
||
允许`xcode`使用`root`权限启动自定义的`debugserver`调试iOS应用。 | ||
|
||
目前只在以下越狱设备上进行了测试: | ||
|
||
* iPhone 6s 14.2 | ||
* iPhone 7 13.6.1 | ||
* iPhone 11 Pro 14.2 | ||
|
||
理论上支持iOS10以上设备,包括A12。 | ||
|
||
Cydia 源:https://repo.byteage.com | ||
|
||
# 背景 | ||
|
||
通常情况下,我们使用`xcode`进行真机调试时有如下限制: | ||
|
||
1. 只能以`mobile`权限启动调试器 | ||
2. 启动的调试器只能是`/Developer/usr/bin/debugserver` | ||
|
||
基于上面的限制,产生了以下问题: | ||
|
||
1. 无法调试系统进程,如:`Cydia`、`Safiri` | ||
2. 无法调试`AppStore`下载的应用,应用需要砸壳后重签名 | ||
|
||
要解决上面的问题,需要使用具有高权限的`debugserver`,具体的配置过程,可以参考文章 [iOS12 下配置debugserver + lldb调试环境的小技巧和问题处理](https://iosre.com/t/ios12-debugserver-lldb/14429)。 | ||
|
||
要解决上面的限制,就需要安装本插件。 | ||
|
||
安装本插件以后,将允许开发者使用`xcode`以`root`权限启动自定义的`debugserver`进行调试。 | ||
|
||
你可以在设置中对插件进行设置。 | ||
|
||
# 文章 | ||
* [让 Xcode 支持使用 root 权限调试 iOS 设备上的任何应用或进程](https://byteage.com/154.html?from=github) | ||
|
||
# 截图 | ||
![](ScreenShots/20220627_235849.png) | ||
![](ScreenShots/20220628_000606_898.png) |