Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当self被KVO观察/RAC 时,hook该类的方法会crash #2

Closed
ChenMengqi opened this issue Aug 3, 2020 · 1 comment
Closed

当self被KVO观察/RAC 时,hook该类的方法会crash #2

ChenMengqi opened this issue Aug 3, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ChenMengqi
Copy link
Collaborator

报错是:[SPA] PANIC: unprotected error in call to Lua API (attempt to index a nil value)

@ChenMengqi
Copy link
Collaborator Author

原因是 KVO/RAC后,isa被替换,导致 object_getClassName获取到的类不对,修改为 [self class] 获取即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant