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..
[SwiftUI] Custom Selectable Modal
·
🍎 iOS/SwiftUI
생김새 구현 struct SelectableModal: View { let title: String let selectCases: [String] let onSelect: (String) -> Void var body: some View { VStack(spacing: 0) { Spacer().frame(height: 26) Text(title) .font(.system(size: 17, weight: .bold)) .padding(.bottom, 16) Rectangle() .foregroundColor(ColorManager.black150) .frame(height: 1) ForEach(selectCases, id: \\.self) { selectCase in Button { onSelect(sel..
JerryiOS
Jerry