https://opensource.apple.com/source/dyld/dyld-353.2.1/include/mach-o/dyld-interposing.h // 演示代码 // #import <mach-o/dyld-interposing.h> // from dyld-interposing.h #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 };