LoginSignup
6
2

More than 3 years have passed since last update.

SwiftPackageManagerを使用する際に「Communication with the service was interrupted.」と表示される際の対処法

Posted at

スクリーンショット 2020-09-07 23.58.11.png

SPMの検索バーからURLを指定すると表題のエラーが出ました。
~/.gitconfig[includeIf "gitdir:xxxxx"]が入っているとエラーが表示されるようです。

~/.gitconfig
# 例:
[includeIf "gitdir:~/iOS/Company/"]
  path = ~/.gitconfig_company

対処法

SPMを利用してライブラリを追加する時だけでも、[includeIf "gitdir:xxxxx"]をコメントアウトまたは削除したら、
想定通りにバージョンやブランチを指定する画面にたどり着けました。

~/.gitconfig
# コメントアウト
#[includeIf "gitdir:~/iOS/Company/"]
#  path = ~/.gitconfig_company

スクリーンショット 2020-09-08 0.38.15.png

参考

6
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
2