关于Class PLBuildVersion is implem
- 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的问题。
本文标题:关于Class PLBuildVersion is implem
本文链接:https://www.haomeiwen.com/subject/yelgattx.html
网友评论