I was able to solve the problem by doing a clean install of macOS and Xcode. What a dumb as hell problem. No idea what the cause was.
I did try removing Xcode and relevant files/directories first, but that didn't help. Only the clean install of macOS seemed to do the trick.
Topic:
Safari & Web
SubTopic:
General
Tags: