奔潰情況
Xcode 8運行iOS10,APP在第一次訪問相冊,相機,通訊錄,定位等權限時奔潰的情況:
處理辦法:
需要在info.plist中add row一下對應的key:下面列出常用的幾個
Privacy - Photo Library Usage Description 相冊
Privacy - Camera Usage Description 拍照
Privacy - Contacts Usage Description 通訊錄
Privacy - Microphone Usage Description 麥克風
Privacy - Location When In Use Usage Description(Privacy - Location Always Usage Description,Privacy - Location Usage Description)定位
Privacy - Bluetooth Peripheral Usage Description 藍牙
特別的爲防止因定位功能上架被拒,需要對定位做特別處理:
勾選對應權限