How to switch package dependencies in Xcode after deprecation of 'generate-xcodeproj'?

You can open Xcode with environment variable.

$ killall Xcode
$ USE_ANOTHER_DEP=1 open Package.swift

I don’t know if this is documented or not, but it’s heavily used in my project.

3 Likes