Xcode 13.1, Swift Package Manager behind corporate proxy

We are working behind proxy and I have set the git proxy by git config --global http.proxy http://xxxxx and make sure the git can work properly.

But when I am trying to use SPM to add the pakcages, it always show the "AN unknown error occured. unexpected return value from ssl handshake -9896(-1)".

Reproduce step:

  1. create the Mac app project
  2. File --> Add packages...
  3. Copy the "https://github.com/daltoniam/Starscream" into serach area

Also I have checked the developer forums and find this issue has been existed for long time, Is there any upate on this issue?

Thanks in advance.

Replies

I was having a similar problem cloning repositories in Xcode from a locally-hosted gitlab server. I had exactly the same error as you. I'd locked that gitlab server down so it only supported TLSv1.3. By adding TLSv1.2 support back to the local gitlab server, Xcode stopped giving me the error and cloned the repository as requested. I hope this helps you or others having the same issue.

Did you find any solution or workaround for this issue?

Also looking for a solution to this