Yesterday I tried to use Private API within iOS 7 but it doesn't work. The following calls works fine with iOS 6:
1. NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/AppleAccount.framework"];
2. BOOL success = [b load];
3.
4. Class AADeviceInfo = NSClassFromString(@"AADeviceInfo");
6.
7. NSLog(@"-- serialNumber: %@", [AADeviceInfo serialNumber]);
8. NSLog(@"-- udid: %@", [AADeviceInfo udid]);
When using this code snippet within iOS 7 it returns a null pointer. The framework, class and methods still exists (click me). Any idea for my problem? Is there an additional layer of security that makes it no longer possible to call private API within iOS 7?
Thank you!