關于Class PLBuildVersion is implemented in both崩潰的處理

  • Xcode8.2.1報錯,日志如下:
    objc[2770]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11a708998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1195f3880). One of the two will be used. Which one is undefined.
  • 大概意思就是在AssetsLibraryServices.framework和PhotoLibraryServices.framework都有PLBuildVersion 類的實現,但是不知道用哪一個。目前處理崩潰的方案是:
  • 在info.plist添加:Key:Privacy - Photo Library Usage Description Value:$(EXECUTABLE_NAME) photo use
  • 在info.plist添加:Key:Privacy - Camera Usage Description Value:$(EXECUTABLE_NAME) camera use
  • 這樣就可以解決崩潰的問題了,但是具體原因還沒有查清楚,可能是依賴了Facebook SDK,也有可能是Xcode的問題。
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容