Hi,
We have a use case in our app where we wanted to interpose few system calls like socket etc.. It used to work perfectly till iOS 13, but on iOS 14 those interposed functions are not getting invoked
We are using below snippet for function interposing as documented in mac open source https://opensource.apple.com/source/dyld/dyld-733.6/include/mach-o/dyld-interposing.h.auto.html
Could you please help us fixing this issue
We have a use case in our app where we wanted to interpose few system calls like socket etc.. It used to work perfectly till iOS 13, but on iOS 14 those interposed functions are not getting invoked
We are using below snippet for function interposing as documented in mac open source https://opensource.apple.com/source/dyld/dyld-733.6/include/mach-o/dyld-interposing.h.auto.html
Code Block #define DYLD_INTERPOSE(_replacement,_replacee) \ attribute((used)) static struct{ const void* replacement; const void* replacee; } _interpose_##_replacee \ attribute ((section ("DATA,interpose"))) = { (const void*)(unsigned long)&_replacement, (const void*)(unsigned long)&_replacee }; #endif
Could you please help us fixing this issue