How to hook the swift functions by theos?

We can using theos to hook objective_c’s functions, but recently, i tried to reverse a swift app, i cann’t hook the swift functions;Does anybody know how to hook a swift function by theos; Any reply would be appreciated.

1 个赞

AFAIK. Swift is not that dynamic.
You don’t have a runtime objc_XXXX list to work on.
TL;DR Ver:
Afaik, you can’t

yes,you can,but you should find the swift symbols by yourself which is different from oc.