关于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的问题。
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容