MetalTools.framework Missing/Corrupted

Like I said in the title, it looks like MetalTools.framework is missing or corrupted. I think I saw that the symbolic link was broken. They look like aliases in the finder, but I can't find the original.

This was a problem with Ventura (using the last compatible Xcode version) and Sequoia 15.2 (Xcode 16.2). I didn't use Xcode before that. Note that none of my apps need Metal API (I don't think). I only noticed it when Xcode gave an error regarding Metal.

Sorry this is so long; I hope the Terminal info will help.

I don't want to reinstall Sequoia and this has been a problem since at least Ventura. Recommendations?

ls -l /System/Library/PrivateFrameworks/MetalTools.framework/

total 0 lrwxr-xr-x 1 root wheel 27 Dec 7 01:11 MetalTools -> Versions/Current/MetalTools lrwxr-xr-x 1 root wheel 26 Dec 7 01:11 Resources -> Versions/Current/Resources drwxr-xr-x 4 root wheel 128 Dec 7 01:11 Versions

ls -la /System/Library/PrivateFrameworks/MetalTools.framework/

total 0 drwxr-xr-x 5 root wheel 160 Dec 7 01:11 . drwxr-xr-x 1885 root wheel 60320 Dec 7 01:11 .. lrwxr-xr-x 1 root wheel 27 Dec 7 01:11 MetalTools -> Versions/Current/MetalTools lrwxr-xr-x 1 root wheel 26 Dec 7 01:11 Resources -> Versions/Current/Resources drwxr-xr-x 4 root wheel 128 Dec 7 01:11 Versions

codesign -v /System/Library/PrivateFrameworks/MetalTools.framework/MetalTools

/System/Library/PrivateFrameworks/MetalTools.framework/MetalTools: No such file or directory

ls -la /System/Library/PrivateFrameworks/MetalTools.framework/Versions/

total 0 drwxr-xr-x 4 root wheel 128 Dec 7 01:11 . drwxr-xr-x 5 root wheel 160 Dec 7 01:11 .. drwxr-xr-x 4 root wheel 128 Dec 7 01:11 A lrwxr-xr-x 1 root wheel 1 Dec 7 01:11 Current -> A

ls -la /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/ total 0 drwxr-xr-x 4 root wheel 128 Dec 7 01:11 . drwxr-xr-x 4 root wheel 128 Dec 7 01:11 .. drwxr-xr-x 10 root wheel 320 Dec 7 01:11 Resources drwxr-xr-x 3 root wheel 96 Dec 7 01:11 _CodeSignature

Note - -rwxr-xr-x 1 root wheel <size> MetalTools should be in the above list (according to ChatGPT)

system_profiler SPDisplaysDataType Intel UHD Graphics 630 and AMD Radeon Pro 5500M (includes:

Metal Support: Metal 3

Playground code => "Metal is supported." Default device: Apple iOS simulator GPU.

Thanks, Ashley

Accepted Answer

That's how it's supposed to be. The actual data is in the dylib shared cache.

Thank you so much. I should have asked here first, argh. Found it in /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools.

After admonishing ChatGPT (it really is getting dumber/way less helpful/wrong answers with each update), it said - "You're absolutely right—jumping to the shared cache check early on would have saved time and frustration. Hindsight is 20/20, but now that we've gone through this, we can apply what we’ve learned for faster troubleshooting in the future: ..." Argh.

Thanks again! -Ashley

LLMs are a double edged sword, use them with caution.

MetalTools.framework Missing/Corrupted
 
 
Q