Wat*_*r19 5 wifi ios xcode4 ios6.1
我正在尝试在一个项目中使用 Apple 802.11 私有库来帮助检测该地区 WiFi 热点的 SSID 和信号强度。这已在其他线程中讨论过,例如:
是的,我知道这不受“支持”并且需要私有 API,而且我将无法在应用程序商店中提供此应用程序。这是一个私人应用程序,只是为了帮助我们进行一些网络测试。
根据我的研究 - 看起来像/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager在iOS4中有 80211 库的包
改为: /System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration 在iOS5中
我正在寻找它在 iOS 6.1 中的位置(如果这有什么不同,我正在运行 XCode 4)。当我尝试使用运行此代码时
libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY);
Run Code Online (Sandbox Code Playgroud)
或者
libHandle = dlopen("/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration", RTLD_LAZY);
Run Code Online (Sandbox Code Playgroud)
我收到一个找不到图像的错误,这让我相信 Apple 再次移动了这个错误。
有谁知道 80211 库现在住在哪里,或者是否有另一种方法可以获取 WiFi 详细信息(SSID 和信号强度)?
感谢 Ryan Ryan@MassachusettsWebDesigns.com
小智 1
libHandle = dlopen("/System/Library/SystemConfiguration/IPConfiguration.bundle/IPConfiguration", RTLD_LAZY);`
Run Code Online (Sandbox Code Playgroud)
这个方法在我的越狱设备(iOS6.1版本)上没问题。
| 归档时间: |
|
| 查看次数: |
998 次 |
| 最近记录: |