Created
December 1, 2019 03:33
-
-
Save DreamDevLost/113277fce9c9fe0c5ee11c860328715f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *pfpath = [[NSBundle mainBundle] privateFrameworksPath]; | |
// Load all fucking frameworks motherfocker | |
for (NSString *dir in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:pfpath error:NULL]) { | |
NSMutableString *fpath = [pfpath mutableCopy]; | |
NSArray *components = [dir componentsSeparatedByString:@"."]; | |
NSString *fname = components[0]; | |
[fpath appendFormat:@"/%@/%@", dir, fname]; | |
//NSLog(@"dir?? = %@", fpath); | |
dlopen([fpath UTF8String], RTLD_NOW); | |
NSLog(@"dlopen error?? = %s", dlerror()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment