使用私有API在ios中启用个人热点

Jan*_*ane 5 objective-c iphone-privateapi ios personal-hotspot

我正在使用iOS运行时头来启用ios中的热点. 链接

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/Sharing.framework"];
    BOOL success = [b load];
Class SFRemoteHotspotSession=NSClassFromString(@"SFRemoteHotspotSession");
Run Code Online (Sandbox Code Playgroud)

我如何实现以下方法来启用热点: -

- (void)enableHotspotForDevice:(id)arg1 withCompletionHandler:(id /* block */)arg2;
Run Code Online (Sandbox Code Playgroud)