iOS14 本地網(wǎng)絡(luò)(Local Network)權(quán)限彈框?qū)徍吮痪芗敖鉀Q方案

蘋果郵件內(nèi)容

Guideline 5.1.1 - Legal - Privacy - Data Collection and Storage


We noticed that your app requests the user’s consent to access the local network information, but doesn’t sufficiently explain the use of the local network information in the purpose string.

To help users make informed decisions about how their data is used, all permission request alerts need to specify how your app will use the requested information.

Next Steps

Please revise the relevant purpose string in your app’s Info.plist file to specify why your app needs access to the user's local network information. Make sure the purpose string includes an example of how the user's data will be used.

You can modify your app's Info.plist file using the property list editor in Xcode.

Resources

- See examples of helpful, informative purpose strings.
- Review a list of relevant property list keys.

Please see attached screenshot for details.

蘋果認(rèn)為我用到了本地網(wǎng)絡(luò)權(quán)限卻沒有詳細(xì)說明,但是項(xiàng)目中并沒有用到這個(gè)權(quán)限
于是找到以下解決辦法

1.在info.plist 文件中添加 NSLocalNetworkUsageDescription 【app名稱】需要訪問您的本地網(wǎng)絡(luò)才能與【app名稱】服務(wù)器連接

2.CD到項(xiàng)目根目錄下,在終端執(zhí)行命令

grep -r SimplePing .

找出使用本地網(wǎng)絡(luò)的第三方SDK
我發(fā)現(xiàn)高德的庫用到了本地網(wǎng)絡(luò),所以在命令行執(zhí)行

pod update
pod install

,將第三方庫更新到最新版本,再次執(zhí)行上述命令行,高德地圖SDK消失,說明高德地圖在最新版本中做了適配,再次打包提交審核,完美通過

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容