0
0

More than 1 year has passed since last update.

[備忘録]`SwiftPM.SPMRepositoryError error 3.`の解決手順

Last updated at Posted at 2022-07-13

環境

swift version 5.6.1
Xcode 13.3.1

発生した問題

以下エラーが出てビルドが失敗

The operation couldn’t be completed. (SwiftPM.SPMRepositoryError error 3.)

解決した手順

  • Xcodeを終了
  • ターミナルで以下コマンドを実行
rm -rf ~/Libray/Developer/Xcode/DerivedData
rm -rf ~/Library/Caches/org.swift.swiftpm
  • Xcodeを起動
  • Xcode左上のメニューから [File] -> [Packages] -> [Reset Package Caches]

原因

SPMパッケージのキャッシュが破損したことが原因。

参考

0
0
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
0
0