Dealing with even the most trivial syntax errors in Package.swift is one of the most time consuming and frustrating experiences. Xcode just shits the bed and often gives you little to no information on what failed.
Even something like an extra comma in your Package.swift would cause inscrutable package resolution errors.
And they had to rev the _entire_ Swift language to solve that particular problem…