Clone
3
Tools/Xcode
Fan-Wu Geoffrey Yang edited this page 2026-09-29 16:15:48 +13:00

Xcode Info


Use System git instead of Xcode git

Explanation Xcode comes bundled with it's own version of git. In most cases this seems to work fine.

In some scenarios I've found that Xcode is unable to bypass an authenticated proxy to fetch swift packages through ssh. In this case I run the following command to use my system git which will then also use my system in build ssh keys that I have registered against the ssh-agent.

sudo defaults write com.apple.dt.Xcode IDEPackageSupportUseBuiltinSCM YES

Swift Package Manager - Cannot fetch as username does not match last

This happens as there is a conflict between your last fetch of the package and new ones org id

ie org-{some_number}}@github.com:auth0/JWTDecode.swift.git

This needs to be changed to

[email protected]:auth0/JWTDecode.swift.git

Swift Package cannot fetch

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent