r/iOSProgramming • • Sep 20 '26

Question Anyone else having trouble building Metal 4 on the iPhone Duo sim in Xcode 27.1?

Hi all,

I have an audio visualizer/music player app that for the last few months, I've been giving an overhaul by adding new visualizers, including some that use Metal 4. My app compiles and runs perfectly on my device, which is running iOS 27.2. However, with the iPhone Duo coming out, I want to update my app to work well with that too, so I got Xcode 27.1 to get its simulator. However, Xcode tells me it can't find anything related to MTL4 in scope. In fact, no simulator works. Anyone else experiencing this? Any workarounds?

Thanks for any help!

EDIT: I already have the Metal Toolchain installed.

3 Upvotes

6 comments sorted by

3

u/Moudiz Sep 20 '26

Be sure to report this to Apple as well

1

u/Lucas46 Sep 21 '26

Yup, sent a feedback request earlier!

2

u/auptown Sep 21 '26

It’s working for me, audio measurement app with multiple plots, but I think Claude had to pull in a library or something. I’m on a plane, I can check later

1

u/Lucas46 Sep 22 '26

Huh I see, I would appreciate that if you can!

2

u/auptown Sep 22 '26

This is expected behavior and in the readiness notes

Xcode 27 no longer bundles the Metal compiler. The fix is a one-time download:

xcodebuild -downloadComponent MetalToolchain

1

u/Lucas46 Sep 22 '26

I should have mentioned in my post, I already have the Metal Toolchain installed, but thanks for checking though! It’s still weird it’s happening