Class PLBuildVersion is implemented in both frameworks
我的项目运行在iphone5s(ios 10.3)上,终端输出如下提示:
objc[94239]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11e36ecc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11e1856f0). One of the two will be used. Which one is undefined.
首先这不是一个错误,只是一个提示;
我用iphone 4s(ios 8.3)运行,则没有这个提示;
是由于iOS 10更新后,开发者调用系统相册需要在info.plist文件中添加白名单,分别有
调用系统相册权限:
key: NSPhotoLibraryUsageDescription
value(string): photoLibraryDesciption
调用系统相机权限:
key: NSCameraUsageDescription
value(string): cameraDesciption