From 7c7e59cc0bfbfae1d62fe2106507a1ad7265b261 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 16 Jun 2025 21:47:44 +0900 Subject: [PATCH 01/23] =?UTF-8?q?[#33]=20README=20=EB=A0=88=ED=8D=BC?= =?UTF-8?q?=EB=9F=B0=EC=8A=A4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index 0d85d63..2b1714c 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -11,7 +11,6 @@ 2C079FBF2DB2505700B1EE0D /* RealmSwift in Frameworks */ = {isa = PBXBuildFile; productRef = 2C079FBE2DB2505700B1EE0D /* RealmSwift */; }; 2C079FC02DB2507700B1EE0D /* RealmSwift in Embed Frameworks */ = {isa = PBXBuildFile; productRef = 2C079FBE2DB2505700B1EE0D /* RealmSwift */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 2CE46E212DAE78D7008C6FBC /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = 2CE46E202DAE78D7008C6FBC /* .gitignore */; }; - 2CF57F5C2DF9483100F59463 /* PrivacyPolicy.md in Resources */ = {isa = PBXBuildFile; fileRef = 2CF57F5B2DF9483100F59463 /* PrivacyPolicy.md */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -47,6 +46,7 @@ /* Begin PBXFileReference section */ 2C079A562DAF9F7F00B1EE0D /* Run_MileApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Run_MileApp.swift; sourceTree = ""; }; + 2C7633922E0049A30005D988 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 2CE46DF32DAE7780008C6FBC /* Run Mile.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Run Mile.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2CE46E002DAE7782008C6FBC /* Run MileTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Run MileTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 2CE46E0A2DAE7782008C6FBC /* Run MileUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Run MileUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -101,6 +101,7 @@ 2CE46DEA2DAE7780008C6FBC = { isa = PBXGroup; children = ( + 2C7633922E0049A30005D988 /* README.md */, 2CF57F5B2DF9483100F59463 /* PrivacyPolicy.md */, 2C079A562DAF9F7F00B1EE0D /* Run_MileApp.swift */, 2CE46E202DAE78D7008C6FBC /* .gitignore */, @@ -246,7 +247,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 2CF57F5C2DF9483100F59463 /* PrivacyPolicy.md in Resources */, 2CE46E212DAE78D7008C6FBC /* .gitignore in Resources */, ); runOnlyForDeploymentPostprocessing = 0; From 07a473db058d7133090490c03e87d688a576b871 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 16 Jun 2025 22:21:13 +0900 Subject: [PATCH 02/23] [#33] fastlane init --- Gemfile | 3 + Gemfile.lock | 227 +++++++++++++++++++++++++++++ Run Mile.xcodeproj/project.pbxproj | 10 ++ fastlane/Appfile | 8 + fastlane/Fastfile | 25 ++++ 5 files changed, 273 insertions(+) create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 fastlane/Appfile create mode 100644 fastlane/Fastfile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..7a118b4 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem "fastlane" diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..bb63134 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,227 @@ +GEM + remote: https://rubygems.org/ + specs: + CFPropertyList (3.0.7) + base64 + nkf + rexml + addressable (2.8.7) + public_suffix (>= 2.0.2, < 7.0) + artifactory (3.0.17) + atomos (0.1.3) + aws-eventstream (1.4.0) + aws-partitions (1.1116.0) + aws-sdk-core (3.225.2) + aws-eventstream (~> 1, >= 1.3.0) + aws-partitions (~> 1, >= 1.992.0) + aws-sigv4 (~> 1.9) + base64 + jmespath (~> 1, >= 1.6.1) + logger + aws-sdk-kms (1.105.0) + aws-sdk-core (~> 3, >= 3.225.0) + aws-sigv4 (~> 1.5) + aws-sdk-s3 (1.189.1) + aws-sdk-core (~> 3, >= 3.225.0) + aws-sdk-kms (~> 1) + aws-sigv4 (~> 1.5) + aws-sigv4 (1.12.1) + aws-eventstream (~> 1, >= 1.0.2) + babosa (1.0.4) + base64 (0.3.0) + claide (1.1.0) + colored (1.2) + colored2 (3.1.2) + commander (4.6.0) + highline (~> 2.0.0) + declarative (0.0.20) + digest-crc (0.7.0) + rake (>= 12.0.0, < 14.0.0) + domain_name (0.6.20240107) + dotenv (2.8.1) + emoji_regex (3.2.3) + excon (0.112.0) + faraday (1.10.4) + faraday-em_http (~> 1.0) + faraday-em_synchrony (~> 1.0) + faraday-excon (~> 1.1) + faraday-httpclient (~> 1.0) + faraday-multipart (~> 1.0) + faraday-net_http (~> 1.0) + faraday-net_http_persistent (~> 1.0) + faraday-patron (~> 1.0) + faraday-rack (~> 1.0) + faraday-retry (~> 1.0) + ruby2_keywords (>= 0.0.4) + faraday-cookie_jar (0.0.7) + faraday (>= 0.8.0) + http-cookie (~> 1.0.0) + faraday-em_http (1.0.0) + faraday-em_synchrony (1.0.0) + faraday-excon (1.1.0) + faraday-httpclient (1.0.1) + faraday-multipart (1.1.0) + multipart-post (~> 2.0) + faraday-net_http (1.0.2) + faraday-net_http_persistent (1.2.0) + faraday-patron (1.0.0) + faraday-rack (1.0.0) + faraday-retry (1.0.3) + faraday_middleware (1.2.1) + faraday (~> 1.0) + fastimage (2.4.0) + fastlane (2.228.0) + CFPropertyList (>= 2.3, < 4.0.0) + addressable (>= 2.8, < 3.0.0) + artifactory (~> 3.0) + aws-sdk-s3 (~> 1.0) + babosa (>= 1.0.3, < 2.0.0) + bundler (>= 1.12.0, < 3.0.0) + colored (~> 1.2) + commander (~> 4.6) + dotenv (>= 2.1.1, < 3.0.0) + emoji_regex (>= 0.1, < 4.0) + excon (>= 0.71.0, < 1.0.0) + faraday (~> 1.0) + faraday-cookie_jar (~> 0.0.6) + faraday_middleware (~> 1.0) + fastimage (>= 2.1.0, < 3.0.0) + fastlane-sirp (>= 1.0.0) + gh_inspector (>= 1.1.2, < 2.0.0) + google-apis-androidpublisher_v3 (~> 0.3) + google-apis-playcustomapp_v1 (~> 0.1) + google-cloud-env (>= 1.6.0, < 2.0.0) + google-cloud-storage (~> 1.31) + highline (~> 2.0) + http-cookie (~> 1.0.5) + json (< 3.0.0) + jwt (>= 2.1.0, < 3) + mini_magick (>= 4.9.4, < 5.0.0) + multipart-post (>= 2.0.0, < 3.0.0) + naturally (~> 2.2) + optparse (>= 0.1.1, < 1.0.0) + plist (>= 3.1.0, < 4.0.0) + rubyzip (>= 2.0.0, < 3.0.0) + security (= 0.1.5) + simctl (~> 1.6.3) + terminal-notifier (>= 2.0.0, < 3.0.0) + terminal-table (~> 3) + tty-screen (>= 0.6.3, < 1.0.0) + tty-spinner (>= 0.8.0, < 1.0.0) + word_wrap (~> 1.0.0) + xcodeproj (>= 1.13.0, < 2.0.0) + xcpretty (~> 0.4.1) + xcpretty-travis-formatter (>= 0.0.3, < 2.0.0) + fastlane-sirp (1.0.0) + sysrandom (~> 1.0) + gh_inspector (1.1.3) + google-apis-androidpublisher_v3 (0.54.0) + google-apis-core (>= 0.11.0, < 2.a) + google-apis-core (0.11.3) + addressable (~> 2.5, >= 2.5.1) + googleauth (>= 0.16.2, < 2.a) + httpclient (>= 2.8.1, < 3.a) + mini_mime (~> 1.0) + representable (~> 3.0) + retriable (>= 2.0, < 4.a) + rexml + google-apis-iamcredentials_v1 (0.17.0) + google-apis-core (>= 0.11.0, < 2.a) + google-apis-playcustomapp_v1 (0.13.0) + google-apis-core (>= 0.11.0, < 2.a) + google-apis-storage_v1 (0.31.0) + google-apis-core (>= 0.11.0, < 2.a) + google-cloud-core (1.8.0) + google-cloud-env (>= 1.0, < 3.a) + google-cloud-errors (~> 1.0) + google-cloud-env (1.6.0) + faraday (>= 0.17.3, < 3.0) + google-cloud-errors (1.5.0) + google-cloud-storage (1.47.0) + addressable (~> 2.8) + digest-crc (~> 0.4) + google-apis-iamcredentials_v1 (~> 0.1) + google-apis-storage_v1 (~> 0.31.0) + google-cloud-core (~> 1.6) + googleauth (>= 0.16.2, < 2.a) + mini_mime (~> 1.0) + googleauth (1.8.1) + faraday (>= 0.17.3, < 3.a) + jwt (>= 1.4, < 3.0) + multi_json (~> 1.11) + os (>= 0.9, < 2.0) + signet (>= 0.16, < 2.a) + highline (2.0.3) + http-cookie (1.0.8) + domain_name (~> 0.5) + httpclient (2.9.0) + mutex_m + jmespath (1.6.2) + json (2.12.2) + jwt (2.10.1) + base64 + logger (1.7.0) + mini_magick (4.13.2) + mini_mime (1.1.5) + multi_json (1.15.0) + multipart-post (2.4.1) + mutex_m (0.3.0) + nanaimo (0.4.0) + naturally (2.3.0) + nkf (0.2.0) + optparse (0.6.0) + os (1.1.4) + plist (3.7.2) + public_suffix (6.0.2) + rake (13.3.0) + representable (3.2.0) + declarative (< 0.1.0) + trailblazer-option (>= 0.1.1, < 0.2.0) + uber (< 0.2.0) + retriable (3.1.2) + rexml (3.4.1) + rouge (3.28.0) + ruby2_keywords (0.0.5) + rubyzip (2.4.1) + security (0.1.5) + signet (0.20.0) + addressable (~> 2.8) + faraday (>= 0.17.5, < 3.a) + jwt (>= 1.5, < 3.0) + multi_json (~> 1.10) + simctl (1.6.10) + CFPropertyList + naturally + sysrandom (1.0.5) + terminal-notifier (2.0.0) + terminal-table (3.0.2) + unicode-display_width (>= 1.1.1, < 3) + trailblazer-option (0.1.2) + tty-cursor (0.7.1) + tty-screen (0.8.2) + tty-spinner (0.9.3) + tty-cursor (~> 0.7) + uber (0.1.0) + unicode-display_width (2.6.0) + word_wrap (1.0.0) + xcodeproj (1.27.0) + CFPropertyList (>= 2.3.3, < 4.0) + atomos (~> 0.1.3) + claide (>= 1.0.2, < 2.0) + colored2 (~> 3.1) + nanaimo (~> 0.4.0) + rexml (>= 3.3.6, < 4.0) + xcpretty (0.4.1) + rouge (~> 3.28.0) + xcpretty-travis-formatter (1.0.1) + xcpretty (~> 0.2, >= 0.0.7) + +PLATFORMS + arm64-darwin-24 + ruby + +DEPENDENCIES + fastlane + +BUNDLED WITH + 2.6.9 diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index 2b1714c..af30b97 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -47,6 +47,8 @@ /* Begin PBXFileReference section */ 2C079A562DAF9F7F00B1EE0D /* Run_MileApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Run_MileApp.swift; sourceTree = ""; }; 2C7633922E0049A30005D988 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; + 2C7635B02E0051AD0005D988 /* Gemfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Gemfile; sourceTree = ""; }; + 2C7635B12E0051AD0005D988 /* Gemfile.lock */ = {isa = PBXFileReference; lastKnownFileType = text; path = Gemfile.lock; sourceTree = ""; }; 2CE46DF32DAE7780008C6FBC /* Run Mile.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Run Mile.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2CE46E002DAE7782008C6FBC /* Run MileTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Run MileTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 2CE46E0A2DAE7782008C6FBC /* Run MileUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Run MileUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -55,6 +57,11 @@ /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedRootGroup section */ + 2C7635AF2E0051AD0005D988 /* fastlane */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = fastlane; + sourceTree = ""; + }; 2CE46DF52DAE7780008C6FBC /* Run Mile */ = { isa = PBXFileSystemSynchronizedRootGroup; path = "Run Mile"; @@ -101,6 +108,9 @@ 2CE46DEA2DAE7780008C6FBC = { isa = PBXGroup; children = ( + 2C7635AF2E0051AD0005D988 /* fastlane */, + 2C7635B02E0051AD0005D988 /* Gemfile */, + 2C7635B12E0051AD0005D988 /* Gemfile.lock */, 2C7633922E0049A30005D988 /* README.md */, 2CF57F5B2DF9483100F59463 /* PrivacyPolicy.md */, 2C079A562DAF9F7F00B1EE0D /* Run_MileApp.swift */, diff --git a/fastlane/Appfile b/fastlane/Appfile new file mode 100644 index 0000000..4ace4da --- /dev/null +++ b/fastlane/Appfile @@ -0,0 +1,8 @@ +app_identifier("com.mooni.Run-Mile") # The bundle identifier of your app +apple_id("dlsqja567@naver.com") # Your Apple Developer Portal username + +itc_team_id("126391461") # App Store Connect Team ID +team_id("VF8R3A969C") # Developer Portal Team ID + +# For more information about the Appfile, see: +# https://docs.fastlane.tools/advanced/#appfile diff --git a/fastlane/Fastfile b/fastlane/Fastfile new file mode 100644 index 0000000..3e1cf10 --- /dev/null +++ b/fastlane/Fastfile @@ -0,0 +1,25 @@ +# This file contains the fastlane.tools configuration +# You can find the documentation at https://docs.fastlane.tools +# +# For a list of all available actions, check out +# +# https://docs.fastlane.tools/actions +# +# For a list of all available plugins, check out +# +# https://docs.fastlane.tools/plugins/available-plugins +# + +# Uncomment the line if you want fastlane to automatically update itself +# update_fastlane + +default_platform(:ios) + +platform :ios do + desc "Push a new beta build to TestFlight" + lane :beta do + increment_build_number(xcodeproj: "Run Mile.xcodeproj") + build_app(scheme: "Run Mile") + upload_to_testflight + end +end From 3ca3fd68d3488724ad4c759d2da8ca59e259a8a4 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 13:04:28 +0900 Subject: [PATCH 03/23] =?UTF-8?q?[#33]=20Fastlane=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile.xcodeproj/project.pbxproj | 38 ++++++++++------- fastlane/Fastfile | 65 +++++++++++++++++++++++++++++- fastlane/Matchfile | 13 ++++++ 3 files changed, 100 insertions(+), 16 deletions(-) create mode 100644 fastlane/Matchfile diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index af30b97..872e465 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -443,9 +443,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506113; - DEVELOPMENT_TEAM = VF8R3A969C; + CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 202506182; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = VF8R3A969C; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "Run-Mile-Info.plist"; @@ -457,7 +460,7 @@ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UIStatusBarStyle = ""; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_UIUserInterfaceStyle = Dark; @@ -466,9 +469,11 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "com.mooni.Run-Mile AppStore"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; @@ -485,9 +490,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506113; - DEVELOPMENT_TEAM = VF8R3A969C; + CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 202506182; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = VF8R3A969C; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = "Run-Mile-Info.plist"; @@ -499,7 +507,7 @@ INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UIStatusBarStyle = ""; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleDarkContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; INFOPLIST_KEY_UIUserInterfaceStyle = Dark; @@ -508,9 +516,11 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "com.mooni.Run-Mile AppStore"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; @@ -526,7 +536,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 18.4; @@ -545,7 +555,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 18.4; @@ -563,7 +573,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; @@ -580,7 +590,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 3e1cf10..c4fdd8c 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -18,8 +18,69 @@ default_platform(:ios) platform :ios do desc "Push a new beta build to TestFlight" lane :beta do - increment_build_number(xcodeproj: "Run Mile.xcodeproj") - build_app(scheme: "Run Mile") + + today = Time.now.strftime("%Y%m%d") + + current_build_number = "#{latest_testflight_build_number}" + + if current_build_number.length == 9 + current_date = current_build_number[0,8] # 앞 8자리가 날짜 + current_count = current_build_number[8].to_i # 마지막 1자리가 숫자 + else + # 빌드 넘버가 없거나 형식이 다르면 초기화 + current_date = "" + current_count = 0 + end + + if current_date == today + next_count = current_count + 1 + else + next_count = 1 + end + + new_build_number = "#{today}#{next_count}" + + increment_build_number( + xcodeproj: "Run Mile.xcodeproj", + build_number: new_build_number + ) + + # notification( + # subtitle: "Build Number: #{new_build_number}", + # message: "테스트 플라이트 배포 준비" + # ) + + 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_KEY]}", + is_key_content_base64: true + ) + + match(type: "appstore") + + build_app( + scheme: "Run Mile", + xcodebuild_formatter: "xcpretty", + export_options: { + provisioningProfiles: { + "com.mooni.Run-Mile" => "com.mooni.Run-Mile AppStore" + } + } + ) + upload_to_testflight + + # notification( + # subtitle: "Testflight 배포 성공!", + # message: "Build Number : #{new_build_number}, 테스트 플라이트 배포에 성공했습니다!" + # ) end + + # error do |lane, exception, options| + # notification( + # subtitle: "Testflight 배포 중 오류가 발생했습니다.", + # message: "#{exception}" + # ) + # end end diff --git a/fastlane/Matchfile b/fastlane/Matchfile new file mode 100644 index 0000000..4b50f33 --- /dev/null +++ b/fastlane/Matchfile @@ -0,0 +1,13 @@ +git_url("https://github.com/mooninbeom/fastlane-match") + +storage_mode("git") + +type("appstore") # The default type, can be: appstore, adhoc, enterprise or development + +app_identifier("com.mooni.Run-Mile") +username("dlsqja567@naver.com") # Your Apple Developer Portal username + +# For all available options run `fastlane match --help` +# Remove the # in the beginning of the line to enable the other options + +# The docs are available on https://docs.fastlane.tools/actions/match From 28942033dab9c74be14d7b1fc344d5c0e712955e Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 13:16:49 +0900 Subject: [PATCH 04/23] =?UTF-8?q?[#33]=20=EC=9D=B8=EC=A6=9D=EC=84=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95,=20README=20fastlane=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- Run Mile.xcodeproj/project.pbxproj | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3dae04c..f58cffc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ |상태|앱스토어 배포 완료 및 유지보수 진행 중(v1.0.0)| |:--|:--| -|기술 스택|SwiftUI, HealthKit, Realm, UserNotifications, Vision(이미지 배경 제거)| +|기술 스택|SwiftUI, HealthKit, Realm, Fastlane, UserNotifications, Vision(이미지 배경 제거)| |앱스토어|[Run Mile](https://apps.apple.com/kr/app/run-mile/id6747099791)| |이메일 문의|dlsqja567@naver.com| @@ -25,6 +25,7 @@ |**0. 사이드 프로젝트 Run Mile 앱 개발기**|https://velog.io/@mooninbeom/0.-사이드-프로젝트-Run-Mile-앱-개발기| |**1. HealthKit 데이터 사용(with Continuation)**|https://velog.io/@mooninbeom/1.-HealthKit-데이터-사용with-Continuation| |**2. 백그라운드에서 HealthKit 활용하기**|https://velog.io/@mooninbeom/2.-백그라운드에서-HealthKit-활용하기-o2p1gg9l| +|**3. Fastlane으로 Testflight 배포 자동화**|https://velog.io/@mooninbeom/3.-Fastlane으로-Testflight-배포-자동화|
diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index 872e465..ef15089 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -444,7 +444,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = ""; @@ -473,7 +473,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "com.mooni.Run-Mile AppStore"; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.mooni.Run-Mile"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; @@ -491,7 +491,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = ""; @@ -520,7 +520,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "com.mooni.Run-Mile AppStore"; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.mooni.Run-Mile"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; From 61ed2116a91678d8801adfddc22aa3701f83278e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:06:58 +0900 Subject: [PATCH 05/23] =?UTF-8?q?[#33]=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=9A=A9=20Workflow=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/testflight.yml diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml new file mode 100644 index 0000000..5892970 --- /dev/null +++ b/.github/workflows/testflight.yml @@ -0,0 +1,50 @@ +name: 테스트 플라이트 배포 🚀 + +on: + push: + branches: + - main + # 액션 테스트용 + pull_request: + branches: + - develop + +jobs: + build-upload-testflight: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up RUBY + uses: ruby/setup-ruby@v1 + with: + ruby-version: '2.7' + + - name: Install Bundler + run: gem install bundler + + - name: Install Fastlane + run: brew install fastlane + + - name: Check Fastlane + run: fastlane --version + + - name: Install Dependencies + run: bundle install + + - name: Upload to Testflight ✈️ + env: + APP_STORE_CONNECT_KEY: ${{ secrets.APP_STORE_CONNECT_KEY}} + APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} + APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} + MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + run: bundle exec fastlane beta + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: ipa-and-dsym + path: | + ./Run\ Mile.ipa + ./Run\ Mile.app.dSYM.zip From c4aacb083e9e770d4a987b548cdf791e25b55b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:09:36 +0900 Subject: [PATCH 06/23] =?UTF-8?q?[#33]=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 루비 버전 재조정(2.7 -> 3.1) --- .github/workflows/testflight.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index 5892970..a3657a9 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -19,7 +19,7 @@ jobs: - name: Set up RUBY uses: ruby/setup-ruby@v1 with: - ruby-version: '2.7' + ruby-version: '3.1' - name: Install Bundler run: gem install bundler From 3e39cad1bd8bbc7f21bec6ece273e9451bdc0d31 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 14:14:26 +0900 Subject: [PATCH 07/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(App?= =?UTF-8?q?store=20connect=20api=20key=20=EC=9C=84=EC=B9=98=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c4fdd8c..cca80eb 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -19,6 +19,13 @@ platform :ios do desc "Push a new beta build to TestFlight" lane :beta do + 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_KEY]}", + is_key_content_base64: true + ) + today = Time.now.strftime("%Y%m%d") current_build_number = "#{latest_testflight_build_number}" @@ -50,13 +57,6 @@ platform :ios do # message: "테스트 플라이트 배포 준비" # ) - 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_KEY]}", - is_key_content_base64: true - ) - match(type: "appstore") build_app( From 8c5c65b6ac817389371c5bdc3e7fd0de5be9a8ca Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 14:20:49 +0900 Subject: [PATCH 08/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EB=B3=80=EC=88=98=20=EC=8C=8D=EB=94=B0?= =?UTF-8?q?=EC=98=B4=ED=91=9C=20=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index cca80eb..2e701c6 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -20,9 +20,9 @@ platform :ios do lane :beta do 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_KEY]}", + key_id: "#{ENV["APP_STORE_CONNECT_KEY_ID"]}", + issuer_id: "#{ENV["APP_STORE_CONNECT_ISSUER_ID"]}", + key_content: "#{ENV["APP_STORE_CONNECT_KEY"]}", is_key_content_base64: true ) From 75f1d22d0c2b613b6cbeb3ae9e87dedd9b39d1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 14:56:05 +0900 Subject: [PATCH 09/23] =?UTF-8?q?[#33]=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ssh 연결 추가 --- .github/workflows/testflight.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index a3657a9..5429083 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -16,6 +16,12 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up SSH + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_PRIVATE_KEY }} + known_hosts: ${{ secrets.KNOWN_HOSTS }} + - name: Set up RUBY uses: ruby/setup-ruby@v1 with: From ab3d922969756ab51037c9d84f05929c619e635f Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 15:08:58 +0900 Subject: [PATCH 10/23] =?UTF-8?q?[#33]=20Matchfile=20=EC=88=98=EC=A0=95(gi?= =?UTF-8?q?thub=20url=20HTTPS=20->=20SSH)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Matchfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlane/Matchfile b/fastlane/Matchfile index 4b50f33..3da1c80 100644 --- a/fastlane/Matchfile +++ b/fastlane/Matchfile @@ -1,4 +1,4 @@ -git_url("https://github.com/mooninbeom/fastlane-match") +git_url("git@github.com:mooninbeom/fastlane-match.git") storage_mode("git") From 116632d1efbe178d1c1484a46ea6e4380a182e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 15:20:38 +0900 Subject: [PATCH 11/23] =?UTF-8?q?[#33]=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index 5429083..0e3d6e5 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -11,7 +11,7 @@ on: jobs: build-upload-testflight: - runs-on: macos-latest + runs-on: macos-15 steps: - uses: actions/checkout@v4 From 8ef3adf3db3b235a5a07d859fc7139226e04f267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 15:27:28 +0900 Subject: [PATCH 12/23] =?UTF-8?q?[#33]=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index 0e3d6e5..c559960 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -26,6 +26,14 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: '3.1' + + - name: Set up Xcode + uses: maxim-lobanov/setup-xcode@v1.6.0 + with: + xcode-version: '16.2' + + - name: Check Xcode version + run: xcodebuild -version - name: Install Bundler run: gem install bundler From 4f2a99d32f902c32314c7925c8652e25609dca30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=AC=B8=EC=9D=B8=EB=B2=94?= <116792524+mooninbeom@users.noreply.github.com> Date: Wed, 18 Jun 2025 15:38:10 +0900 Subject: [PATCH 13/23] =?UTF-8?q?[#33]=20=EC=9B=8C=ED=81=AC=ED=94=8C?= =?UTF-8?q?=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index c559960..302512e 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -27,10 +27,13 @@ jobs: with: ruby-version: '3.1' - - name: Set up Xcode - uses: maxim-lobanov/setup-xcode@v1.6.0 - with: - xcode-version: '16.2' + # - name: Set up Xcode + # uses: maxim-lobanov/setup-xcode@v1.6.0 + # with: + # xcode-version: '16.2' + + - name: Select Xcode version + run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer - name: Check Xcode version run: xcodebuild -version From d16b348c4073f853cb2b840ceeab1298271af6d9 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 17:21:57 +0900 Subject: [PATCH 14/23] =?UTF-8?q?[#33]=20=EC=9D=B8=EC=A6=9D=EC=84=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile.xcodeproj/project.pbxproj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index ef15089..acf749b 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -444,7 +444,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = ""; @@ -473,7 +473,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.mooni.Run-Mile"; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.mooni.Run-Mile"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; @@ -491,7 +491,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "Run Mile/Run Mile.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 202506182; DEVELOPMENT_TEAM = ""; @@ -520,7 +520,7 @@ PRODUCT_BUNDLE_IDENTIFIER = "com.mooni.Run-Mile"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; - "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match Development com.mooni.Run-Mile"; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.mooni.Run-Mile"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTS_MACCATALYST = NO; SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; From 50bcb9383040f9d51eb55f962758f7796c568aa6 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 19:51:18 +0900 Subject: [PATCH 15/23] =?UTF-8?q?[#33]=20Fastfile=20Slack=20=EB=85=B8?= =?UTF-8?q?=ED=8B=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile/Helper/HealthKit+.swift | 2 +- fastlane/Fastfile | 28 ++++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/Run Mile/Helper/HealthKit+.swift b/Run Mile/Helper/HealthKit+.swift index 227bc6b..3d423f3 100644 --- a/Run Mile/Helper/HealthKit+.swift +++ b/Run Mile/Helper/HealthKit+.swift @@ -8,7 +8,7 @@ import HealthKit -extension HKHealthStore { +extension HKHealthStore: Sendable { public func fetchData( sampleType: HKSampleType, predicate: NSPredicate? = nil, diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2e701c6..29c5cf1 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -57,8 +57,18 @@ platform :ios do # message: "테스트 플라이트 배포 준비" # ) + slack( + message: "Build Number: #{new_build_number} 배포 준비 시작", + slack_url: "https://hooks.slack.com/services/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" + ) + match(type: "appstore") + slack( + message: "Build Number: #{new_build_number} 인증서 준비 완료", + slack_url: "https://hooks.slack.com/services/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" + ) + build_app( scheme: "Run Mile", xcodebuild_formatter: "xcpretty", @@ -69,18 +79,32 @@ platform :ios do } ) + slack( + message: "Build Number: #{new_build_number} 아카이브 완료", + slack_url: "https://hooks.slack.com/services/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" + ) + upload_to_testflight # notification( # subtitle: "Testflight 배포 성공!", # message: "Build Number : #{new_build_number}, 테스트 플라이트 배포에 성공했습니다!" # ) + + slack( + message: "Build Number: #{new_build_number} 배포 성공!", + slack_url: "https://hooks.slack.com/services/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" + ) end - # error do |lane, exception, options| + error do |lane, exception, options| # notification( # subtitle: "Testflight 배포 중 오류가 발생했습니다.", # message: "#{exception}" # ) - # end + slack( + message: "Testflight 배포 중 오류가 발생했습니다. #{exception}", + slack_url: "https://hooks.slack.com/services/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" + ) + end end From f617c0ac8c1f8939062d2cc4b5105f7b79497a48 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Wed, 18 Jun 2025 19:59:18 +0900 Subject: [PATCH 16/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 29c5cf1..4d1ff6f 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -59,14 +59,14 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 배포 준비 시작", - slack_url: "https://hooks.slack.com/services/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" + slack_url: "https://hooks.slack.com/services/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" ) match(type: "appstore") slack( message: "Build Number: #{new_build_number} 인증서 준비 완료", - slack_url: "https://hooks.slack.com/services/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" + slack_url: "https://hooks.slack.com/services/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" ) build_app( @@ -81,7 +81,7 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 아카이브 완료", - slack_url: "https://hooks.slack.com/services/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" + slack_url: "https://hooks.slack.com/services/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" ) upload_to_testflight @@ -93,7 +93,7 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 배포 성공!", - slack_url: "https://hooks.slack.com/services/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" + slack_url: "https://hooks.slack.com/services/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" ) end @@ -104,7 +104,7 @@ platform :ios do # ) slack( message: "Testflight 배포 중 오류가 발생했습니다. #{exception}", - slack_url: "https://hooks.slack.com/services/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" + slack_url: "https://hooks.slack.com/services/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" ) end end From 107fee5e4b3c5a4d713e8b5b3f5150a11898449d Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Sat, 21 Jun 2025 22:37:05 +0900 Subject: [PATCH 17/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(sla?= =?UTF-8?q?ck=20url=20=EB=B3=80=EA=B2=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 1 + fastlane/Fastfile | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index 302512e..dec17ac 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -56,6 +56,7 @@ jobs: APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} + SLACK_URL: ${{ secrets.SLACK_URL }} run: bundle exec fastlane beta - name: Upload Artifacts diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4d1ff6f..f198155 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -59,14 +59,16 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 배포 준비 시작", - slack_url: "https://hooks.slack.com/services/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" + channel: "#run_mile", + slack_url: "#{ENV["SLACK_URL"]}" ) match(type: "appstore") slack( message: "Build Number: #{new_build_number} 인증서 준비 완료", - slack_url: "https://hooks.slack.com/services/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" + channel: "#run_mile", + slack_url: "#{ENV["SLACK_URL"]}" ) build_app( @@ -93,7 +95,8 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 배포 성공!", - slack_url: "https://hooks.slack.com/services/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" + channel: "#run_mile", + slack_url: "#{ENV["SLACK_URL"]}" ) end @@ -104,7 +107,9 @@ platform :ios do # ) slack( message: "Testflight 배포 중 오류가 발생했습니다. #{exception}", - slack_url: "https://hooks.slack.com/services/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" + channel: "#run_mile", + success: false, + slack_url: "#{ENV["SLACK_URL"]}" ) end end From 1ef58b605e5c16180fa4c7218caeb02b2e633852 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Sat, 21 Jun 2025 22:59:14 +0900 Subject: [PATCH 18/23] =?UTF-8?q?[#33]=20Realm=20Dependency=20rule=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(master=20->=20=ED=8A=B9=EC=A0=95=20=EB=B2=84?= =?UTF-8?q?=EC=A0=84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index acf749b..351b8ad 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -649,8 +649,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/realm/realm-swift.git"; requirement = { - branch = master; - kind = branch; + kind = exactVersion; + version = 10.54.5; }; }; /* End XCRemoteSwiftPackageReference section */ From c43db55352562005936961a37ae5fb135ac6fe8c Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 23 Jun 2025 14:39:29 +0900 Subject: [PATCH 19/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=A9=94=EC=86=8C=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80,=20build=5Fapp=20=EC=88=98=EC=A0=95)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Run Mile.xcodeproj/project.pbxproj | 12 +++--- fastlane/Fastfile | 65 +++++++++++++++++++++--------- 2 files changed, 51 insertions(+), 26 deletions(-) diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index 351b8ad..4664ded 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -446,7 +446,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = VF8R3A969C; ENABLE_PREVIEWS = YES; @@ -493,7 +493,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = VF8R3A969C; ENABLE_PREVIEWS = YES; @@ -536,7 +536,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 18.4; @@ -555,7 +555,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 18.4; @@ -573,7 +573,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; @@ -590,7 +590,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 202506182; + CURRENT_PROJECT_VERSION = 202506231; DEVELOPMENT_TEAM = VF8R3A969C; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; diff --git a/fastlane/Fastfile b/fastlane/Fastfile index f198155..08607c3 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -16,6 +16,50 @@ default_platform(:ios) platform :ios do + lane :local do + app_store_connect_api_key( + key_id: "", + issuer_id: "", + key_content: "" + ) + + today = Time.now.strftime("%Y%m%d") + + current_build_number = "#{latest_testflight_build_number}" + + if current_build_number.length == 9 + current_date = current_build_number[0,8] # 앞 8자리가 날짜 + current_count = current_build_number[8].to_i # 마지막 1자리가 숫자 + else + # 빌드 넘버가 없거나 형식이 다르면 초기화 + current_date = "" + current_count = 0 + end + + if current_date == today + next_count = current_count + 1 + else + next_count = 1 + end + + new_build_number = "#{today}#{next_count}" + + increment_build_number( + xcodeproj: "Run Mile.xcodeproj", + build_number: new_build_number + ) + + match(type: "appstore") + + build_app( + scheme: "Run Mile", + xcodebuild_formatter: "xcpretty" + ) + + upload_to_testflight + end + + desc "Push a new beta build to TestFlight" lane :beta do @@ -52,11 +96,6 @@ platform :ios do build_number: new_build_number ) - # notification( - # subtitle: "Build Number: #{new_build_number}", - # message: "테스트 플라이트 배포 준비" - # ) - slack( message: "Build Number: #{new_build_number} 배포 준비 시작", channel: "#run_mile", @@ -73,12 +112,7 @@ platform :ios do build_app( scheme: "Run Mile", - xcodebuild_formatter: "xcpretty", - export_options: { - provisioningProfiles: { - "com.mooni.Run-Mile" => "com.mooni.Run-Mile AppStore" - } - } + xcodebuild_formatter: "xcpretty" ) slack( @@ -88,11 +122,6 @@ platform :ios do upload_to_testflight - # notification( - # subtitle: "Testflight 배포 성공!", - # message: "Build Number : #{new_build_number}, 테스트 플라이트 배포에 성공했습니다!" - # ) - slack( message: "Build Number: #{new_build_number} 배포 성공!", channel: "#run_mile", @@ -101,10 +130,6 @@ platform :ios do end error do |lane, exception, options| - # notification( - # subtitle: "Testflight 배포 중 오류가 발생했습니다.", - # message: "#{exception}" - # ) slack( message: "Testflight 배포 중 오류가 발생했습니다. #{exception}", channel: "#run_mile", From 1f0bd2414fd20e07e85057a538606e873503f636 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 23 Jun 2025 14:41:23 +0900 Subject: [PATCH 20/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(Sla?= =?UTF-8?q?ck=20url)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 08607c3..d19a94f 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -117,7 +117,8 @@ platform :ios do slack( message: "Build Number: #{new_build_number} 아카이브 완료", - slack_url: "https://hooks.slack.com/services/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" + channel: "#run_mile", + slack_url: "#{ENV["SLACK_URL"]}" ) upload_to_testflight From 48999f4462bff0f332b02417aa9b48dd5fa7c673 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 23 Jun 2025 14:50:31 +0900 Subject: [PATCH 21/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(set?= =?UTF-8?q?up=5Fci=20=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastlane/Fastfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index d19a94f..0ad93ff 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -102,6 +102,8 @@ platform :ios do slack_url: "#{ENV["SLACK_URL"]}" ) + setup_ci + match(type: "appstore") slack( From 1366903ecba549014747590b919ed43ed9b35ea7 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 23 Jun 2025 15:01:41 +0900 Subject: [PATCH 22/23] =?UTF-8?q?[#33]=20Fastfile=20=EC=88=98=EC=A0=95(lan?= =?UTF-8?q?e=20=EC=9D=B4=EB=A6=84=20=EB=B3=80=EA=B2=BD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 2 +- Run Mile.xcodeproj/project.pbxproj | 4 ++-- fastlane/Fastfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index dec17ac..f12fbe0 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -57,7 +57,7 @@ jobs: APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} SLACK_URL: ${{ secrets.SLACK_URL }} - run: bundle exec fastlane beta + run: bundle exec fastlane testflight - name: Upload Artifacts uses: actions/upload-artifact@v4 diff --git a/Run Mile.xcodeproj/project.pbxproj b/Run Mile.xcodeproj/project.pbxproj index 4664ded..9745616 100644 --- a/Run Mile.xcodeproj/project.pbxproj +++ b/Run Mile.xcodeproj/project.pbxproj @@ -649,8 +649,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/realm/realm-swift.git"; requirement = { - kind = exactVersion; - version = 10.54.5; + kind = upToNextMajorVersion; + minimumVersion = 10.54.5; }; }; /* End XCRemoteSwiftPackageReference section */ diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 0ad93ff..da94af5 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -61,7 +61,7 @@ platform :ios do desc "Push a new beta build to TestFlight" - lane :beta do + lane :testflight do app_store_connect_api_key( key_id: "#{ENV["APP_STORE_CONNECT_KEY_ID"]}", From 7692c77f9d07bb2f4ea08731e59af2e8c633e939 Mon Sep 17 00:00:00 2001 From: mooninbeom Date: Mon, 23 Jun 2025 15:12:27 +0900 Subject: [PATCH 23/23] =?UTF-8?q?[#33]=20workflow=20=EC=88=98=EC=A0=95(?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=9A=A9=20=ED=8A=B8=EB=A6=AC?= =?UTF-8?q?=EA=B1=B0=20=EC=A0=9C=EA=B1=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/testflight.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/testflight.yml b/.github/workflows/testflight.yml index f12fbe0..dca5719 100644 --- a/.github/workflows/testflight.yml +++ b/.github/workflows/testflight.yml @@ -4,10 +4,6 @@ on: push: branches: - main - # 액션 테스트용 - pull_request: - branches: - - develop jobs: build-upload-testflight: