about WifiManager.bundle

坚强是说给别人听的谎言 提交于 2019-12-11 03:27:28

问题


What will be the result of the

libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY);

I'm using this for getting wifi info on ipod os 3.1.2., because when I NSLog(@"Result %@",libhandle); I'm getting null what should be the answer,

thanks


回答1:


According to this discussion, doing the above will return NULL on the iPhone Simulator, because it lacks the required bundle. If you are still running into issues with this on the device, it might be that Apple has changed the internal file structure for that system item. This is one of the reasons why it is bad to rely in private APIs.

For more on WiFi snooping, you might refer to the source code for this project, because they might have resolved these issues. However, once again I'd like to remind you that you will not be able to submit an application to the App Store that uses this, because of the private API calls. Apple is now scanning all submitted applications for these calls and instantly rejecting them.



来源:https://stackoverflow.com/questions/1747651/about-wifimanager-bundle

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!