More than a question this is a sharing information post.
If you pull private repos via SSH, you should create an id_ecdsa
because Xcode does not accept Ed25519 key, instead since github does not accept RSA-SHA1 anymore since yesterday.
https://github.blog/2021-09-01-improving-git-protocol-security-github/
To generate it use: ssh-keygen -t ecdsa -C "your_email@example.com"
You can follow the next steps of config from here: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent