一、權限問題。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。