Xcode 12 beta and iOS 14: Weird console logs “objc[5551]: Class … is implemented in both”

时间秒杀一切 提交于 2021-01-20 17:54:07

问题


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.

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).

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?

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


回答1:


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

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



来源:https://stackoverflow.com/questions/62970821/xcode-12-beta-and-ios-14-weird-console-logs-objc5551-class-is-implement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!