From 240c7ca2ecb3bdd320c3d70afd84645095a2260c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:28:11 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20#26=20=EB=B9=8C=EB=93=9C=EB=84=98?= =?UTF-8?q?=EB=B2=84=20=EC=A1=B0=ED=9A=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 32f1cdc2..eabb95f5 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -30,9 +30,20 @@ platform :ios do sh("make release") end + api_key = app_store_connect_api_key( + key_id: ENV['APP_STORE_CONNECT_KEY_ID'], + issuer_id: ENV['APP_STORE_CONNECT_ISSUER_ID'], + key_content: ENV['APP_STORE_CONNECT_API'] + ) + + latest_build_number = latest_testflight_build_number( + api_key: api_key, + app_identifier: "com.pokitmons.pokit" + ) + increment_build_number( xcodeproj: "Projects/App/App.xcodeproj", - build_number: (latest_testflight_build_number + 1).to_s # 최신 TestFlight 빌드 번호보다 1 증가 + build_number: (latest_build_number + 1).to_s ) build_app( @@ -48,16 +59,10 @@ platform :ios do } ) - api_key = app_store_connect_api_key( - key_id: ENV['APP_STORE_CONNECT_KEY_ID'], - issuer_id: ENV['APP_STORE_CONNECT_ISSUER_ID'], - key_content: ENV['APP_STORE_CONNECT_API'] - ) - - upload_to_testflight( - api_key: api_key, - distribute_external: false, - changelog: "" - ) + upload_to_testflight( + api_key: api_key, + distribute_external: false, + changelog: "" + ) end end