Skip to content

Commit acdb423

Browse files
committed
🧱 ci: remove app_identifier from Matchfile
1 parent 380fb57 commit acdb423

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

SNUTT/fastlane/Fastfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ platform :ios do
8181
desc "Sync development certificates and profiles for local development"
8282
lane :sync_dev_certificates do
8383
# Sync development certificates (readonly for team members)
84-
# app_identifier and team_id are inherited from Matchfile and Appfile
8584
match(
8685
type: "development",
86+
app_identifier: [BUNDLE_ID_DEV, BUNDLE_ID_DEV_WIDGET, BUNDLE_ID_PROD, BUNDLE_ID_PROD_WIDGET],
8787
readonly: true
8888
)
8989

@@ -107,10 +107,10 @@ platform :ios do
107107
desc "[Requires Permissions] Sync production (App Store) certificates and profiles"
108108
lane :sync_prod_certificates do
109109
# Sync production certificates (readonly: false to allow updates)
110-
# app_identifier and team_id are inherited from Matchfile and Appfile
111110
UI.important("Note: This command requires admin permissions to modify certificates.")
112111
match(
113112
type: "appstore",
113+
app_identifier: [BUNDLE_ID_DEV, BUNDLE_ID_DEV_WIDGET, BUNDLE_ID_PROD, BUNDLE_ID_PROD_WIDGET],
114114
readonly: false
115115
)
116116
end
@@ -142,14 +142,17 @@ platform :ios do
142142
setup_ci if ENV["CI"]
143143

144144
# Sync certificates and provisioning profiles using Match
145+
# Explicitly specify only the required app identifiers for this deployment
145146
widget_bundle_id = "#{app_identifier}.widget"
147+
UI.important("🔍 Matching certificates for: #{app_identifier}, #{widget_bundle_id}")
146148
match(
147149
type: "appstore",
148150
app_identifier: [app_identifier, widget_bundle_id],
149151
readonly: is_ci
150152
)
151153

152154
# Get the latest build number from App Store Connect for this version
155+
UI.important("🔍 Querying latest build for app: #{app_identifier}, version: #{marketing_version}")
153156
latest_build_number = latest_testflight_build_number(
154157
app_identifier: app_identifier,
155158
api_key: api_key,
@@ -224,6 +227,7 @@ platform :ios do
224227
}
225228
)
226229
else
230+
UI.important("🔍 Uploading to TestFlight for app: #{app_identifier}, version: #{marketing_version}, build: #{new_build_number}")
227231
upload_to_testflight(
228232
api_key: api_key,
229233
app_identifier: app_identifier,

SNUTT/fastlane/Matchfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ storage_mode("git")
88
# Note: 'type' (development/appstore) is specified in each lane
99
# This allows flexibility for different certificate types
1010

11-
# All app identifiers including main apps and widget extensions
12-
# Note: These must be explicitly listed as fastlane cannot read from xcconfig files
13-
app_identifier([
14-
"com.wafflestudio.snutt", # Prod app
15-
"com.wafflestudio.snutt.dev", # Dev app
16-
"com.wafflestudio.snutt.widget", # Prod widget
17-
"com.wafflestudio.snutt.dev.widget" # Dev widget
18-
])
19-
2011
# Note: App Group Identifiers are configured in the entitlements files
2112
# (Supporting Files/SNUTT-Dev.entitlements and SNUTT-Prod.entitlements)
2213
# Match will automatically include them in the provisioning profiles when regenerating

0 commit comments

Comments
 (0)