-
Notifications
You must be signed in to change notification settings - Fork 0
[#225] 테스트플라이트 자동 배포가 실패하는 현상을 해결한다 #229
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
Changes from all commits
8696137
6772079
d4fc32f
1822757
e8dc7d4
c02c960
0c61521
5958687
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| require "shellwords" | ||
|
|
||
| default_platform(:ios) | ||
|
|
||
| platform :ios do | ||
|
|
@@ -36,11 +38,24 @@ platform :ios do | |
| readonly: ENV["CI"] == "true" | ||
| ) | ||
|
|
||
| matchProvisioningProfileMapping = lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING] || {} | ||
| provisioningProfileSpecifier = matchProvisioningProfileMapping["opfic.DevLog"].to_s.strip | ||
|
|
||
| UI.user_error!("Missing provisioning profile mapping for opfic.DevLog") if provisioningProfileSpecifier.empty? | ||
|
|
||
| buildAppXcargs = [ | ||
| "-skipPackagePluginValidation", | ||
| "CODE_SIGN_STYLE=Manual", | ||
| "DEVELOPMENT_TEAM=#{ENV["APP_STORE_TEAM_ID"]}", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The environment variable While other variables like To remediate this, wrap the environment variable in |
||
| "CODE_SIGN_IDENTITY=#{Shellwords.escape("Apple Distribution")}", | ||
| "PROVISIONING_PROFILE_SPECIFIER=#{Shellwords.escape(provisioningProfileSpecifier)}" | ||
| ] | ||
|
|
||
| build_app( | ||
| project: "DevLog.xcodeproj", | ||
| scheme: "DevLog", | ||
| export_method: "app-store", | ||
| xcargs: "-skipPackagePluginValidation" | ||
| xcargs: buildAppXcargs.join(" ") | ||
| ) | ||
|
|
||
| next api_key | ||
|
|
||
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.
번들 식별자
opfic.DevLog가 하드코딩되어 있습니다. 이 값은Matchfile에도 정의되어 있는데, 이렇게 중복으로 하드코딩하면 나중에 번들 ID가 변경될 때 실수가 발생할 수 있습니다.match액션 실행 후lane_context에 저장되는MATCH_PROVISIONING_PROFILE_MAPPING에서 번들 ID를 동적으로 가져오도록 수정하면 유지보수성이 향상됩니다. 이 방법은 매핑에 키가 하나만 존재한다고 가정하고 첫 번째 키를 사용하는 방식입니다.