-
Notifications
You must be signed in to change notification settings - Fork 6
[Setting] #248 - fastlane match, TestFlight 도입 하였습니다. #249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
1c7e9f8 to
73c6e38
Compare
| slack( | ||
| username: "이명진", | ||
| message: "TestFlight 배포 성공.", | ||
| icon_url: "https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/a6/68/d0/a668d049-8c1a-0e7b-19c3-287093c0a501/AppIcon-1x_U007emarketing-0-7-0-85-220.png/1024x1024bb.png", | ||
| slack_url: ENV["RUNNECT_SLACK"], | ||
| payload: { "Version": version } | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테플 lane에 Slack 추가
slack_url 은 숨겨서 안 쓴다면 git 요정과, 슬랙 본사한테 연락 옵니다.
강제 푸시 해서 없애주지 않으면 그 url은 강제로 삭제가 됩니다.
전 url도 삭제되고, 강제 푸시도 해서 깃 히스토리를 지웠음
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git 요정이라니 새롭네요 ㅋㅋㅋㅋㅋ 확인했습니다 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깃 요정 이래 깃 가디언...
513sojin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인했습니다 ~ !!
새로운 팀원이 왔을 때 저번처럼 카톡으로 제가 인증서를 드리지 않아도 본인이 직접 터미널에 명령어를 입력하면 Github private 레포지토리에 제가 올려둔 인증서들이 자동으로 다운로드 되는 원리입니다.
이건 정말 눈물나네요 ... 그런 번거로운 과정을 없애주셔서 감사합니다 명진 최고 ,, 🥹
| func mapView(_ mapView: NMFMapView, cameraWillChangeByReason reason: Int, animated: Bool) { | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요 코드는 뭔가용 ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분이 지도를 움직일 때 사용되는 메서드인데, 하나 구현하면 하나가 안되는 이ㅅ가 있어서 일단 내용은 빼고, 빈 메서드만 추가 해놨어요!
| slack( | ||
| username: "이명진", | ||
| message: "TestFlight 배포 성공.", | ||
| icon_url: "https://is1-ssl.mzstatic.com/image/thumb/Purple116/v4/a6/68/d0/a668d049-8c1a-0e7b-19c3-287093c0a501/AppIcon-1x_U007emarketing-0-7-0-85-220.png/1024x1024bb.png", | ||
| slack_url: ENV["RUNNECT_SLACK"], | ||
| payload: { "Version": version } | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git 요정이라니 새롭네요 ㅋㅋㅋㅋㅋ 확인했습니다 ~
| ############# Device Management ############# | ||
|
|
||
| desc "Register Devices" | ||
| lane :register_new_device do |options| | ||
| device_name = prompt(text: "Enter the device name: ") | ||
| device_udid = prompt(text: "Enter the device UDID: ") | ||
| device_hash = {} | ||
| device_hash[device_name] = device_udid | ||
| register_devices(devices: device_hash) | ||
| match(type: "development", force_for_new_devices: true) | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거는 어떤 코드인가요 ?! device 등록하는 것두 fastlane에서 관리해주는 건쥐 궁금합니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
device 이름과 번호도 command로 간단하게 입력해 주면 자동으로 등록되는 거예요!
bc2c04e to
c221014
Compare
🌱 작업한 내용
🌱 PR Point
생성한 lane
match_read_onlyset_versionbeta(Slack 연동)Force-Push하고 푸시 한 커밋 기록 삭제 후 새 커밋으로 등록됩니다.이렇게 3가지를 만들어 두었으며 필요하다면 추가적으로 만들어서 사용하시면 됩니다!!
지금은 인증서를 최신화하는
match_read_only만 사용해도 무관합니다.머지 후 각자 해야 할 일
우선 Github ssh 등록은 안했다면 등록 해주세요 가이드
Fastlane 공식 가이드 참고
xcode-select --install실행brew install fastlane.env.default파일 생성하고 제가 따로 전달할 코드들을 이 파일에 붙여넣기4-1.
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD은 개인 App_IDfastlane match_read_only실행 -> 이렇게 하면 자동으로 깃헙에 올라가 있는 인증서들 다운로드 진행passphrase를 입력하라고 하면 카톡으로 전달한 비번 입력키체인 password입력하라고 하면 각자 노트북 비번 입력provisioning인증서가 match 어쩌고~~로 잘 들어가 있는지 확인!!!!여기까지 하면
세팅 + 실행 확인까지 잘 된거에요!하다가 잘 안되는 부분 있으면 언제든 연락 주시면 됩니다!
추가적인 lane 사용법
앞서 3가지 lane을 생성했다고 했는데 이것들은 Fastfile에 들어가면 Ruby라는 언어로 작성되어 있습니다.
만들어둔 3가지 lane에 대한 설명을 첨부합니다. (터미널에 아래와 같이 입력하면 실행됩니다!)
fastlane set_version version:2.1.5: 이렇게 하면 우리 프로젝트 버전이 2.1.5로 자동 변경됩니다.fastlane beta version:2.1.5: 2.1.5로 버전 설정후 테스트플라이트 자동 업로드 (인증서도 최신화 자동으로 합니다.)fastlane match_read_only: 인증서 최신화📮 관련 이슈