I've tried this with Xcode 12.3 and 13.2.1. When initializing a NSAttributedString, for example,
let str2 = "This is <b>bold</b>."
let htmlData = str2.data(using: .utf8)!
let docType = NSAttributedString.DocumentType.html
let attributedString = try? NSAttributedString(
data: htmlData,
options: [.documentType: docType],
documentAttributes: nil)
The following error is produced (I replaced the app name)
2022-02-08 08:22:58.660449-0500 <appname>[1086:40707] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003aa28c0> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2022-02-08 08:22:58.693109-0500 <appname>[1086:40707] AudioObjectSetPropertyData: no object with given ID 0
2022-02-08 08:22:58.693975-0500 <appname>[1086:40707] AudioSessionSimulatorClientManager.cpp:83 Failed to set processVolumeScalar on device. Error: 560947818
The only reference I found to this problem was
https://developer.apple.com/forums/thread/655813
It suggests upgrading Xcode solves the problem. I upgraded to 13.2.1 (latest release) but the problem remains. The output is not displaying so I assume the errors are causing that.