git@my_private_repo.git: An unknown error occurred. reference 'refs/remotes/origin/main' not found (-1) 오류 해결
·
🍎 iOS/SwiftUI
문제상황 git@my_private_repo.git: An unknown error occurred. reference 'refs/remotes/origin/main' not found (-1) SPM에 새 패키지를 설치할 때 이런 오류가 발생한다. 해결 쉘 스크립트를 만들어 해결한다. vi fix-spm-cache.sh 먼저 이렇게 파일을 만들어주고 #!/bin/bashif [[ $# -eq 0 ]] ; then echo 'Please call the script with the name of your project as it appears in the derived data directory. Case-insensitive.' echo 'For example: ./fix-spm-cache.sh myp..