-
반응형
2021년 8월 13일부로 script 등으로 접속하는 passphrase기반의 로그인을 GIT에서 더이상 지원하지 않기로 했다. 사실 작년부터 꾸준이 워닝이 뜨고 있었고 유예기간을 준것이긴 한데 .. 결국 막힐때 까지 passphrase 쓰는 사람도 있다. 그게 바로 나야 ~
Fastlane 에서 ios-certificate repository 를 업데이트하고 조작하는 부분이 passphrase 로 되어있었는데 이를 PAT 로 변경한 기록. 간단하지만 또 나중되면 기억이 안나서 ..
에러코드
[14:47:53]: Exit status: 128 [14:47:53]: Error cloning certificates repo, please make sure you have read access to the repository you want to use [14:47:53]: Run the following command manually to make sure you're properly authenticated:
PAT generate 하기
이 부분은 너무 쉽다. Git > Setting > Developer Setting > Personal Access Token generate 하기
보통 expiration을 설정하지만 너무 귀찮아서 expire 하지 않는 토큰으로 생성했다.
토큰은 생성 후 1회만 조회가능하고 다시는 볼수 없으니 따로 저장 해 두기 !
Make sure to copy your personal access token now. You won’t be able to see it again!
PAT 를 시스템에 적용하기
일단 certificate repo와 연결되어 있는 remote origin을 끊는다.
myProject-ios-certificate$ git remote remove origin
github.com 경로에 저장되어 있는 credential 정보를 삭제한다.
$ git credential-osxkeychain erase host=github.com protocol=https
그다음 다시 clone을 받는다
git clone https://github.com/dundinstudio/myProject-ios-certificate.git
이때 Username, Password를 물어보게 되는데 이때 비밀번호 적는 란에 PersonalAccessToken을 적으면 완료
Cloning into 'myProject-ios-certificate'... Username for 'https://github.com': jooeungen Password for 'https://jooeungen@github.com': remote: Enumerating objects: 148, done. remote: Counting objects: 100% (148/148), done. remote: Compressing objects: 100% (114/114), done. remote: Total 148 (delta 39), reused 133 (delta 24), pack-reused 0 Receiving objects: 100% (148/148), 351.28 KiB | 652.00 KiB/s, done. Resolving deltas: 100% (39/39), done.
이제 다시 fastlane match를 사용하면되는데, match-passphrase를 다시 한번 물어보게 되니 적어주면 된다.
끝~
반응형'개발' 카테고리의 다른 글
[iOS] Testflight 업로드에서 JSON 파일이 유실되는 현상 해결 (0) 2021.09.15 iOS 프로젝트명 변경하기 (0) 2021.09.08 Mac 오디오 지직 거릴때 (0) 2021.07.14 [iOS/ Swift] SwiftLint & SwiftFormat 적용하기 (0) 2021.06.13 [SwiftUI] Keyboard avoidance 동작하지 않도록 하기 (0) 2021.05.17 댓글