iOS6.1: Problems while trying to access WiFi RSSI (MobileWiFi.framework)

杀马特。学长 韩版系。学妹 提交于 2019-12-03 20:43:55
Andreas Schacherbauer

To me it looks like your entitlements file is incorrect.

You have replaced your bundle id with the wifi.manager-access entitlement. You need to leave the keychain-access-group as it was and add the wifi.manager-access entitlement at the end of the file as new key/value pair.

Generate a new entitlement file in Xcode and add the following key/value pair.

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