一、权限问题。app
报错:Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1231fa910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x122175210). One of the two will be used. Which one is undefined.ui
iOS 10 在使用摄像头、麦克风、定位、相册等功能的时候,会检查相应权限。App 须要在您 App 的 info.plist 中添加相应权限的说明,不然在 iOS 10 上会 crash。code
如 SDK 用到的相关功能:orm
麦克风权限:ip
Privacy - Microphone Usage Description 产品
XXX须要使用您的麦克风
相机权限: it
Privacy - Camera Usage Description io
XXX须要使用您的相机
相册权限:form
Privacy - Photo Library Usage Description 后台
XXX须要访问您的相册
定位权限:
Privacy - Location When In Use Usage Description
XXX须要获取地理位置信息
定位权限:
Privacy - Location Always Usage Description
XXX须要在后台获取地理位置信息
PS:上面的中文提示您能够按照您的产品需求进行定制。
二、远程推送。
在 App 设置中,Capabilities -> Push Notifications 务必记得要开启,不然在 iOS 10 中会获取不到 deviceToken。