蘋果郵件內(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消失,說明高德地圖在最新版本中做了適配,再次打包提交審核,完美通過