问题
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