关于 WifiManager.bundle
会产生什么结果
libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY);
我使用它来获取 ipod os 3.1.2 上的 wifi 信息 ,因为当我 NSLog(@"Result %@",libhandle);
我得到null 答案应该是什么,
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据此讨论,执行上述操作将在 iPhone 模拟器上返回 NULL,因为它缺少所需的捆绑包。如果您在设备上仍然遇到此问题,则可能是 Apple 更改了该系统项目的内部文件结构。这就是依赖私有 API 不好的原因之一。
有关 WiFi 监听的更多信息,您可以参考此项目的源代码,因为他们可能已经解决了这些问题。不过,我想再次提醒您,由于私有 API 调用,您将无法向使用此功能的 App Store 提交应用程序。苹果现在正在扫描所有提交的申请以查找这些电话,并立即拒绝它们。
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.