无法访问ios中给定路径的捆绑包。代码如下:
NSBundle *bundle = [NSBundle bundleWithPath:@"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks"];
if (![bundle load]) {
NSLog(@"Error"); // maybe throw an exception
} else {
_supporter = [NSClassFromString(@"BCBatteryDevice") valueForKey:@"sharedInstance"];
_handler = [[BCBatteryDeviceHandler alloc] init];
}