IOS 14 被拒原因记录
苹果审核被拒:
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.
Specifically, it would be necessary to elaborate why this app need to connect to devices.
iOS14 当 App 要使用 Bonjour 服务时或者访问本地局域网,使用 mDNS 服务等,都需要授权,开发者需要在 Info.plist 中详细描述使用的为哪种服务以及用途.
如果应用中需要使用 LocalNetwork 需要在 Info.plist 中配置 Privacy - Local Network Usage Description
解决办法:
1.Privacy - Local Network Usage Description : "xx"不会连接到您所用网络上的设备,只会检测与您本地网关的连通性.用户也可以在 iOS 设备的设置->隐私->本地网络界面修改 app 的权限设置。
2.更新相关用到此隐私的SDK,一般SDK都已经更新关闭了此权限
如果你是Xcode 11 版本的,在info.plist 配置时可能找不到Privacy - Local Network Usage Description,这时用NSLocalNetworkUsageDescription 设置就好了