@@ -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 ,
0 commit comments