ios 类 PLBuildVersion 在两个/应用程序中实现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39521667/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 10:10:23  来源:igfitidea点击:

Class PLBuildVersion is implemented in both/Applications

iosswiftswift3

提问by Cristian Siles

Why am I getting this?

为什么我得到这个?

objc[3993]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x112bb0910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1129da210). One of the two will be used. Which one is undefined. 2016-09-15 19:06:45.101896 Fly App[3993:92356] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-15 19:06:45.108211 Fly App[3993:92356] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-15 19:06:45.118565 Fly App[3993:92353] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0 2016-09-15 19:06:45.153130 Fly App[3993:92250] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-15 19:06:45.537455 Fly App[3993:92250] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

objc[3993]:类 PLBuildVersion 在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (09x10)2bb和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1129da210)。将使用两者之一。哪个是不确定的。2016-09-15 19:06:45.101896 Fly App[3993:92356] 子系统:com.apple.UIKit,类别:HIDEventFiltered,enable_level:0,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl:0 : 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0 2016-09-15 19:06:45。

Any reasons in particular? (It never happened before until today after updated xcode, and updated my project to swift 3)

有什么特别的原因吗?(直到今天更新 xcode 后才发生,并将我的项目更新为 swift 3)

Can someone please help?

有人可以帮忙吗?

* Edited *

* 编辑 *

I'm not convinced on the suggestions given by fellow developers so I've kept looking around for an answer. I've found a thread that says that the problem seems to have been cased by the Facebook SDK. However I haven't installed the Facebook SDK (Cocoapod) yet on my project, however I'm using the Import Social to share on Twitter, so I removed the Import Social and the ran my project again.

我不相信其他开发人员给出的建议,所以我一直在四处寻找答案。我发现一个帖子说这个问题似乎是由 Facebook SDK 解决的。但是我还没有在我的项目中安装 Facebook SDK (Cocoapod),但是我使用 Import Social 在 Twitter 上分享,所以我删除了 Import Social 并再次运行我的项目。

This time I didn't get the same Output on the debugger, I got this instead:

这次我没有在调试器上得到相同的输出,而是得到了这个:

2016-09-16 11:57:41.393517 Fly App[1277:48009] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.396355 Fly App[1277:48009] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.411055 Fly App[1277:48006] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

2016-09-16 11:57:41.426085 Fly App[1277:47901] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.946193 Fly App[1277:47901] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

2016-09-16 11:57:41.393517 Fly App[1277:48009] 子系统:com.apple.UIKit,类别:HIDEventFiltered,enable_level:0,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl:0 : 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.396355 Fly App[1277:48009] 子系统:com.apple.UIKit,类别:HIDEventIncoming,enable_level:0,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl:0,debug_ttl:0 : 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.411055 Fly App[1277:48006] 子系统:com.apple.BaseBoard,类别:MachPort,enable_level:1,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl:generate_symptoms, : 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

2016-09-16 11:57:41.426085 Fly App[1277:47901] 子系统:com.apple.UIKit,类别:StatusBar,enable_level:0,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl:0,generate_symptoms : 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

2016-09-16 11:57:41.946193 Fly App[1277:47901] 子系统:com.apple.BackBoardServices.fence,类别:App,enable_level:1,persist_level:0,default_ttl:0,info_ttl:0,debug_ttl: , generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

So the "Class PLBuildVersion is implemented in both" is gone:

所以“类 PLBuildVersion 在两者中实现”消失了:

objc[3993]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x112bb0910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1129da210). One of the two will be used. Which one is undefined.

objc[3993]: 类 PLBuildVersion 在 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (09x10)2bb和 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1129da210)。将使用两者之一。哪个是不确定的。

I still don't know what all this means. Has anyone found something to solve this issue?

我仍然不知道这一切意味着什么。有没有人找到解决这个问题的方法?

回答by Laxman Sahni

Its not a compiler warning, its an Objective-C runtime warning, and it is not in any code that you control. You can safely ignore it, as you cannot fix it.

它不是编译器警告,而是 Objective-C 运行时警告,并且不在您控制的任何代码中。您可以放心地忽略它,因为您无法修复它。

回答by surendar

NSPhotoLibraryUsageDescription $(PRODUCT_NAME) uses photos

NSPhotoLibraryUsageDescription $(PRODUCT_NAME) 使用照片