First of all I'm trying to execute code in my app (only from my Swift Framework!) when it is loaded into memory.
Normally I would use this ObjC Method to execute Code when my Framework is loaded into Memory.
Is there something equivalent to this in Swift?
static void __attribute__((constructor)) initialize(void){
NSLog(@"==== Code Injection in Action====");
/*
My Code
*/
}
What I have found:
Apple Developer Page regarding this (but it's also only explained in ObjC)
Other Page about Code Injection in general
Any Ideas?