is it on-topic on SO?
Yes.
If yes, how so?
Xcode is an IDE - a tool specifically for programming - and this is a question about Xcode. It's therefore on-topic under the clause at https://stackoverflow.com/help/on-topic that says:
if your question generally covers…
- [bla], or
- [bla], or
- software tools commonly used by programmers; and is
- a practical, answerable problem that is unique to software development
… then you’re in the right place to ask your question!
To your remaining points:
should it be migrated to AskDifferent?
or else SuperUser?
It shouldn't be migrated because:
1. It's on-topic here, and
2. It's too old to migrate
However, based upon my understanding of what's on-topic on those sites, I believe this question would be on-topic on them as well.
(Also it doesn't specify either an XCode version or MacOS version)
Given that folks succeeded in answering the question anyway, and nobody has commented to complain that the answers don't work for them, presumably nothing relevant has changed across versions. In any case, it's probably safe to guess that the asker was using the latest version at the time that he asked.
If anything does change in a later release that invalidates existing answers, somebody can give an answer specific to the new version, and edit the previous answers to indicate what versions they apply to. This kind of approach is frequently more reader-friendly than indicating exact versions in questions.