Skip to content

Commit fc69c91

Browse files
committed
test: CD 환경에서 ipa 못찾는 이슈 확인
1 parent 96e4b17 commit fc69c91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fastlane/Fastfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
XCODE_PROJ = "DevLog.xcodeproj"
22
APP_IDENTIFIER = "opfic.DevLog"
33
TARGET_NAME = "DevLog"
4-
TESTFLIGHT_BUILD_OUTPUT_DIRECTORY = "fastlane/testflight_build"
4+
TESTFLIGHT_BUILD_OUTPUT_DIRECTORY = File.expand_path("testflight_build", __dir__)
55
TESTFLIGHT_IPA_OUTPUT_PATH = File.join(TESTFLIGHT_BUILD_OUTPUT_DIRECTORY, "#{TARGET_NAME}.ipa")
66

77
default_platform(:ios)
@@ -121,7 +121,7 @@ platform :ios do
121121
api_key = asc_api_key
122122
# lane_context는 같은 fastlane 실행 내에서만 유지되므로, 별도 CI step에서는 고정 ipa 경로를 사용한다.
123123
ipa_output_path = lane_context[SharedValues::IPA_OUTPUT_PATH].to_s
124-
ipa_output_path = File.expand_path(TESTFLIGHT_IPA_OUTPUT_PATH, Dir.pwd) if ipa_output_path.empty?
124+
ipa_output_path = TESTFLIGHT_IPA_OUTPUT_PATH if ipa_output_path.empty?
125125

126126
UI.user_error!("Missing built ipa at #{ipa_output_path}") if !File.exist?(ipa_output_path)
127127

0 commit comments

Comments
 (0)