Comments (1)
这个是SDMagicHook的调用链检查机制检测到你在进行hook操作之后没有调用原始方法报出的警告。
很多人在hook时候忘记调用hook之前的原始方法导致整个调用链断裂,然后影响了在你之前hook这同一个方法的其他人的代码导致他们的hook实现会被调用了,出现各种暗坑。
如果确定不需要调用原始方法或者想要屏蔽掉调用检查警告,可以按如下方式操作下:
/// debug模式下会自动检查hook操作是否忘记调用原始方法,如果发现未调用原始方法会暂停当前进程帮助你定位问题,
/// 如果你不希望在检测到异常时暂停当前进程请将此tag置为NO。
extern BOOL SDMagicHookDebugFlag;
from sdmagichook.
Related Issues (14)
- 您这个和Aspects的instance hook有什么不同吗😂 HOT 7
- 使用这个库,影响上架吗 HOT 1
- 用于打点, 如何Hook所有继承某个类的实例函数,而不是仅仅某一个实例的函数 HOT 1
- iOS 14.5崩溃 HOT 3
- release环境 最新iOS15多的系统 卡主了
- SDOrderedDict 这个类的命名有点不合适
- 这个库功能跟aspects基本一样,只有api上有细微差点……建议写相关功能先调研一下相关的库,避免重复造轮子 HOT 1
- SDMagicHook与Aspects的异同 HOT 3
- demo0 KVO crash HOT 3
- 代码应该在哪里编写 HOT 2
- 这个是不是只能对已知的实例(或者说自己生成的实例)进行hook HOT 3
- hook方法后,不调用以前hook的方法崩溃 HOT 2
- Crash Issue HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdmagichook.