In XCode 12.3, I am adding a library using General -> Frameworks, Libraries, and Embedded Content -> Add Package Dependency. Pasting the link to the Githu
General -> Frameworks, Libraries, and Embedded Content -> Add Package Dependency