我正在开发一个应用程序,我正在尝试检测移动热点。我用谷歌搜索了这个并试图实现它。我进口的
#include <SystemConfiguration/SCDynamicStore.h>
并尝试了这段代码,
SCDynamicStoreRef sc = SCDynamicStoreCreate(NULL, CFSTR("com.apple.wirelessmodemsettings.MISManager"), NULL, NULL);
NSDictionary* info = (__bridge_transfer NSDictionary*)SCDynamicStoreCopyValue(sc, CFSTR("com.apple.MobileInternetSharing"));
我在两行都遇到错误,
'SCDynamicStoreCreate' is unavailable: not available on iOS
'SCDynamicStoreCopyValue' is unavailable: not available on iOS
我该如何解决这个问题?(XCode 版本 8.2.1)