I'm not able to add Swift packages into the project anymore with Xcode 13. I tried to add Alamofire by searching its URL but I always got the error bellow.
I tried to add my GitHub account into Xcode too but the result is similar.
I figured out what was the issue was. Xcode can't read the .gitconfig
file properly. In my case I have these lines in my global .gitconfig
file:
[includeIf "gitdir:~/Developer/"]
path = ~/.gitconfig_per
[includeIf "gitdir:~/Developer/Cleverlance/"]
path = ~/.gitconfig_clv
This setup allows to associate specific Git configs with location of a repository in the file system. So when all my main job project are located in ~/Developer/Cleverlance/
directory, the content of the ~/.gitconfig_clv
appends to the global .gitconfig
file.
The content of the partial config is bellow:
[user]
name = Deny Green
email = deny.green@cleverlance.com
signingkey = *********************************
I think that Xcode should should be able to read these settings properly and respect them.