iOS 10运行时崩溃错误:未实现AssetLibraryServices和PhotoLibraryServices

iOS 10运行时崩溃错误:未实现AssetLibraryServices和PhotoLibraryServices,ios,Ios,我还没有实现任何类或方法,只是在XCode中的project上创建的类或方法遇到了问题 我的Plist不包含任何资产图书馆服务或照片图书馆服务 错误: 类在AssetLibraryServices和PhotoLibraryServices中都实现 objc[3119]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.p

我还没有实现任何类或方法,只是在XCode中的project上创建的类或方法遇到了问题 我的Plist不包含任何资产图书馆服务或照片图书馆服务

错误: 类在AssetLibraryServices和PhotoLibraryServices中都实现

objc[3119]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11ad48cc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11ab5f6f0).
将使用其中一个。哪一个是未定义的

该错误仅在使用iOS 10模拟器时出现,在使用真实设备或9.3模拟器时不显示


我遵循了克服碰撞问题的方法:

  • 使用编辑plist文件 密钥:隐私-照片库使用说明
    值:$(产品名称)照片使用
  • 更改了plist属性列表照片和资产库服务,如下所示
  • 找到路径AssetLibraryServices并编辑Plist
  • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/privateframes/AssetsLibraryServices.framework/

  • 找到路径PhotoLibraryServices并编辑Plist
  • /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/privateframes/PhotoLibraryServices.framework/


    即使做了所有这些,我还是犯了同样的错误。有人能帮我解决这个问题吗?

    可能与“克服崩溃问题的方法”和“应用程序构建和运行完美”重复。是哪一个?Warren Burton我遵循了克服问题的方法。。但无法修复它我是问你的应用程序是否真的发生了崩溃,也就是说,当你不想让它崩溃时它就会停止,或者唯一的问题是你有一条控制台消息。我现在唯一的问题是控制台消息