NSBundle MetalTools.framework/ principal class is nil because all fallbacks have failed

Hi, when I run my app, in console say:

NSBundle file:///System/Library/PrivateFrameworks/MetalTools.framework/ principal class is nil because all fallbacks have failed

Answered by DTS Engineer in 808892022

Is this actually triggering a failure? Or are you just worried about the log message? If it’s the latter, see On Log Noise.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am seeing the same issue since moving up to the latest Xcode and iPadOS levels

Would be nice with a "log noise tracker". It seems like something always manages to sneak in.

I have the same error in a newly created project.

macOS 15.0.1

Xcode 16.0 (16A242d)

Is this actually triggering a failure? Or are you just worried about the log message? If it’s the latter, see On Log Noise.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

It’s better if you reply as a reply; it’s easy to miss comments. See Quinn’s Top Ten DevForums Tips for this and other titbits.

I've got same issue and also find the Bundle.main.url(forResource:withExtension:) does not work anymore.

Is this specifically related to Metal? Or just in general?

Because if you’re having a general problem with Bundle, I recommend that you start a new thread for that. Put it in App & System Services > General and tag it with Foundation so that I see it.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I'm having the same issue, I'm building a macOS menu bar app and when I switch to use the menu bar extra it does not specifically let me use Textfield or TexEditor but everything else works

NSBundle MetalTools.framework/ principal class is nil because all fallbacks have failed
 
 
Q