I couldn’t find a solution, but as a workaround, I’m adding the required package to my favorites on GitHub, and then I can see it in Xcode in add package dependency...->source control accounts->GitHub
add package dependency...->source control accounts->GitHub