xcode - how use MobileWiFi.framework

穿精又带淫゛_ 提交于 2019-12-23 01:22:10

问题


In my private app (not jailbroken), I need to read wifi RSSI values of enterprise hotspots. I read about MobileWiFi.framework. I am trying to use the example code "Getting the WiFi signal strength" found here but without lucky. Probably, I am not properly use the framework. Anyone could tell me the steps to do that?


回答1:


visit : // http://iphonedevwiki.net/index.php/MobileWiFi.framework

  <key>com.apple.wifi.manager-access</key>
</true>
  Your custom entitlements file should finally look something like that:

     <?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
       <key>keychain-access-groups</key>
   <array>
    <string>YOUR_APP_BUNDLE_ID</string>
</array>
<key>com.apple.wifi.manager-access</key>
</true>
  </dict>
  </plist>


来源:https://stackoverflow.com/questions/31557922/xcode-how-use-mobilewifi-framework

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