[Catalina] CoreUI annoying error logs

Is there a way to remove the zillions of "CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier:" log records without adding an Assets.xcasset to every single framework, plugin, bundle in an application?


These zillions of log records can cripple the performance of an application.


Is this a bug in Catalina (still in b9)?

Replies

I'm seeing this in 10.15 Beta (19A573a), so hopefully it's a bug they'll fix.


-W

Ah, it looks like this is caused by loading image assets that aren't in the an `xcassets` folder.

So are you saying that creating a folder named "xcassets" and putting the images in it will supress this error? Have you tried it? Yes, this IS in the 10.15 Catalina / XCode 11.1 final releases.

Welp, they ended up shipping this! (Has anyone tried the 10.15.1 betas?)


On 10.15 (19A602) I found that creating a dummy Assets.xcassets catalog containing a single colorset (so that the catalog at least gets compiled and Assets.car exists in the bundle at runtime) was enough to fix the console spew.

Apple redesigned the console for Catalina 10.15. So many errors are logged it's hard to find XCode / myAppName errors. It looks to me like these errors are not logged to the console. Is this correct? If so I'll just ignore them for now.

Running my project with XCode 10.3 does nothing to solve this problem. I still get errors like:


2019-10-22 16:39:44.764172-0600 Appname[10316:215611] [Nib Loading] Unknown class NSBoxCustom in Interface Builder file at path ...

and

2019-10-22 16:39:44.778901-0600 Appname[10316:215611] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: 'com.Appname'


So it looks like the problem is Catalina, not XCode.

Upgrading to Catalina 10.05.1 solves some problems. Foe example the error reported by the original poster:


"CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier:"


but XCode 11.1 still logs the following spurious errors:


2019-10-30 12:47:27.642240-0600 Appname[5299:71250] Metal API Validation Enabled

2019-10-30 12:47:27.760170-0600 Appname[5299:71250] [Nib Loading] Unknown class NSBoxCustom in Interface Builder file at path /Users/myname/Library/Developer/Xcode/DerivedData/Appname-hkjlvhmirshcnhesgvusrbzzbezi/Build/Products/Debug/Appname.app/Contents/Resources/Base.lproj/MyDocument.nib.