iOSiOS之报错上架填坑iOS11和xcode9适配总结

Guideline 5.1.2 - Legal - Privac

2017-09-29  本文已影响2835人  鈊铭

1. 添加用户私有权限Privacy

      自xcode8编译器之后,需要在info.plist添加用户权限Privacy.详细请见苹果官网info.plist包含key.常用的key如下:

2.近期出现Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing被拒详细

Your app accesses user data from the device but does not have the required precautions in place.

Next Steps

To collect personal data with your app, you must make it clear to the user that their personal data will be uploaded to your server and you must obtain the user's consent before the data is uploaded. You must also have a Privacy Policy URL and ensure that the URL you provide directs users to your privacy policy.

- Starting with iOS 6, there are keys for specifying the reason the app will access the user's protected data. When the access prompt is displayed, the purpose specified in these keys is displayed in that dialog box. If your app will be transmitting protected user data, the usage string in your access request should clearly inform the user that their data will be uploaded to your server if they consent.

Resources

For more information on these keys, please review theInformation Property List Key Reference.

具体描述,需要用户在info.plist里面添加详细的描述,做到以下两点即可:

1.当用户不允许的时候,什么功能不能正常使用。

2.APP开启此权限主要是为了什么功能,是否收集用户信息等。

解决方案:

1.NSAppleMusicUsageDescription请点击"好"以允许访问。

2.NSCameraUsageDescription请点击"好"以允许访问。如果不允许,你将无法使用拍摄功能。

3.NSContactsUsageDescription请点击"好"以允许访问。如果不允许,xxapp将无法访问通讯录中的朋友给你。xxapp仅用于访问通讯录好友,不会保存你的通讯录内容。

4.NSLocationWhenInUseUsageDescription请点击"好"以允许访问。如果不允许,你将无法使用位置功能。

5.NSMicrophoneUsageDescription请点击"好"以允许访问。如果不允许,你将无法使用麦克风功能。

6.NSPhotoLibraryUsageDescription请点击"好"以允许访问。如果不允许,你将无法使用图片功能。

特别提醒:

如果想在描述中添加换行,请使用xml的方式打开info.plist文件,并且加入换行符

换行符:


例子: 


第二种情形:

Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing Thank you for your resubmission. After further review we found that your app is still not in compliance with the 5.1.2 guideline. Your app accesses user data from the device but does not have the required precautions in place. To collect personal data with your app, you must make it clear to the user that their personal data will be uploaded to your server and you must obtain the user's consent before the data is uploaded. You must also have a Privacy Policy URL and ensure that the URL you provide directs users to your privacy policy. Once this issue has been resolved, we can continue with the review of your app. Best regards, App Store Review

苹果爸爸提醒用户需要在登录或者注册页面要有用户协议,这样保证用户的私有信息不会上传到服务器或者被用作商用.具体放置一个html文本在服务器上或者本地利用uiwebview或者wkwebview加载.

本地html方式: 无需部署服务器,但存在如果以后有争议的协议会有一些官司要打.

服务器html方式:需要每次加载网络访问,但可以做到动态的更新.

3. xcode9新添加NFC权限的支持

NFCReaderUsageDescription  请点击"好"以允许访问。如果不允许,你将无法使用NFC功能。

补充:

iOS11之后地理定位新增key,上传AppStore时候必须添加上,如果不添加在拒接访问地理位置权限的时候会出现定位的问题.如图:


上一篇下一篇

猜你喜欢

热点阅读