我的项目运行在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

也就是在info.plist文件中add 如下配置即可解决

Class PLBuildVersion is implemented in both frameworks

相关文章:

  • 2021-08-20
  • 2021-12-27
  • 2021-10-09
  • 2021-11-06
  • 2021-07-19
  • 2021-09-28
  • 2022-12-23
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2021-03-31
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案