Dropping back down to Xcode 15.3 and updating xcode-select fixed the issue for me. So it seems there's a bug in 15.4 (or something changed which breaks my build scripts).
Topic:
Developer Tools & Services
SubTopic:
Xcode