Xcode 12 beta和iOS 14:怪异的控制台日志"objc [5551]:类...均在两者中实现". [英] Xcode 12 beta and iOS 14: Weird console logs "objc[5551]: Class ... is implemented in both"

查看:218
本文介绍了Xcode 12 beta和iOS 14:怪异的控制台日志"objc [5551]:类...均在两者中实现".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚下载了Xcode 12 beta 2,现在在运行我的应用程序时,控制台中出现了一堆奇怪的日志(使用Xcode 11.5时这些警告不会出现).
它们如下图所示:

I have just downloaded Xcode 12 beta 2 and now I'm getting a bunch of weird logs in the console while I'm running my app (these warnings don't appear when using Xcode 11.5).
They look like the following one:

objc[5551]: Class CSAudioFileManager is implemented in both 
/Applications/Xcode-beta.app/Contents/Developer/Platforms/
iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/
Contents/Resources/RuntimeRoot/System/Library/
PrivateFrameworks/SpeakerRecognition.framework/SpeakerRecognition (0x1382890e0) 
and 
/Applications/Xcode-beta.app/Contents/Developer/Platforms/
iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/
Contents/Resources/RuntimeRoot/System/Library/
PrivateFrameworks/CoreSpeech.framework/CoreSpeech (0x13772c7a8).
 One of the two will be used. Which one is undefined.

我也在其他类(例如CSVoiceIdXPCClientCSNNVADEndpointAnalyzerCSAudioRecordContextCSOSTransaction等)上获得了此类日志.该应用程序使用CoreData(与CloudKit结合使用),FileManager和UserDefaults.如果该应用程序使用Xcode 11.5运行,则不会显示日志,对于我敢肯定的大多数类,它们不会在我的代码中使用(至少我没有故意使用它们).
请注意,日志仅在运行带有iOS 14.0的模拟设备时出现.例如,如果您选择iPhone 11 Pro(13.5),则不会显示日志(仍然使用Xcode 12).

These kind of logs I'm getting for some other classes like (CSVoiceIdXPCClient, CSNNVADEndpointAnalyzer, CSAudioRecordContext, CSOSTransaction, etc.), too. The app uses CoreData (in combination with CloudKit), FileManager and UserDefaults. If the app runs with Xcode 11.5, the logs aren't shown and for the most of the classes I'm pretty sure, that they aren't used in my code (at least I don't use them intentionally).
Note that the logs just appear when running a simulated device with iOS 14.0. If you choose iPhone 11 Pro (13.5) for example, then the logs don't appear (still with Xcode 12).

那么是否有解决此问题的方法,还是仅是当前Xcode 12 Beta版本的错误,该错误会在其他Xcode 12 Beta版本的发布中予以消除?

So is there a fix for this problem or is it just an error of the current Xcode 12 beta version which will be removed during the release of further Xcode 12 beta versions?


现在objc[5551]...替换为objc[6229]...


Now objc[5551]... is replaced with objc[6229]...

推荐答案

我有相同的日志(使用Xcode Beta 3).我认为这可能与当前的Xcode 12 beta版本有关.

I'm having the same logs (Using Xcode Beta 3). I think it might be something with current Xcode 12 beta version.

这些日志不再显示给我. Xcode 12.0.1(12A7300)

Those logs are not appearing anymore to me. Xcode 12.0.1 (12A7300)

这篇关于Xcode 12 beta和iOS 14:怪异的控制台日志"objc [5551]:类...均在两者中实现".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆