The linked GitHub site does NOT say to install the multiple Xcodes. Here's what it says:
Description
Many components were removed in recent versions of Xcode, the most notable being the Mac OS X 10.6 SDK, which is required to build software using the Carbon API (such as wxWidgets 2.8).
I made the script XcodeLegacy.sh to extract these components (the links work if you sign in to Apple Developer first) from Xcode 3.2.6, Xcode 4.6.3, Xcode 5.1.1 , Xcode 6.4 and install them in Xcode 4/5/6/7:
...
First, notice the heading is Description. There's a separate heading for Usage, which is where the usage instructions are given.
Second, the 2nd sentence of the description doesn't tell you to install those versions of Xcode. It tells you that the script XcodeLegacy.sh was written to do that.
Here's the sentence with the parenthetical phrase crossed out, and some bolding to show the main parts of the sentence:
I made the script XcodeLegacy.sh to extract these components (the links work if you sign in to Apple Developer first) from Xcode 3.2.6, Xcode 4.6.3, Xcode 5.1.1 , Xcode 6.4 and install them in Xcode 4/5/6/7:
There's not a lot of details given, and I did glance through the script. It's pretty dense, so I can't easily check what it's expecting as inputs, except by reading the rather terse Usage info. I'd have to play around with it to figure it out, since the docs are so weak. This isn't atypical for tools aimed at active developers.
If you've never used Xcode before, you should probably learn the basics before undertaking the PPC-target task.
I think you're trying to accomplish something that's well beyond your current skill level, and the tools you might encounter to help you are also intended for developers with more expertise.
The PPC target will still be there after you learn how to use Xcode and how it's structured.
Honestly, I don't think many active developers will be interested in targeting a G5, because it's a dead machine. It may have interest to tinkerers and collectors of antiques, but as a serious target worth spending significant time and effort developing for, I don't see the point.
I have a dual G4 parked in a closet, with 10.4.11 and Xcode 2.something on it. It hasn't been out of the closet in years. I could get rid of it, but that would take some effort, and I'd have to replace it with a table or something to hold the old printers that are also sitting in the closet.
There are websites aimed toward obsolete Macs that may be more fruitful, but I think the percentage of visitors that are developers will be quite thin. Anyone serious about development has long since moved on.
Sorry if any of the above sounds harsh. Developing for obsolete machines is not going to be easy. Be prepared for difficulty and failure.
I don't understand the purpose behind targeting a G5 from a machine that's clearly more capable than the G5 itself. Why not use the G5 itself?
If you've explained your goal and the overall plan before, I'm afraid I missed it, so could you repost it?