@@ -99,6 +99,13 @@ class CodeSigningType
9999 def to_s
100100 type . to_s
101101 end
102+
103+ def match_type
104+ case type
105+ when :development then "development"
106+ when :distribution then "appstore"
107+ end
108+ end
102109end
103110
104111# ============================================================================
@@ -185,7 +192,7 @@ platform :ios do
185192
186193 UI . message ( "Regenerating development provisioning profiles" )
187194 match (
188- type : CodeSigningType ::DEVELOPMENT . to_s ,
195+ type : CodeSigningType ::DEVELOPMENT . match_type ,
189196 readonly : false ,
190197 force_for_new_devices : true
191198 )
@@ -204,7 +211,7 @@ platform :ios do
204211 ] . flatten
205212
206213 match (
207- type : CodeSigningType ::DEVELOPMENT . to_s ,
214+ type : CodeSigningType ::DEVELOPMENT . match_type ,
208215 app_identifier : all_bundle_ids ,
209216 readonly : true
210217 )
@@ -232,7 +239,7 @@ platform :ios do
232239 ] . flatten
233240
234241 match (
235- type : CodeSigningType ::DISTRIBUTION . to_s ,
242+ type : CodeSigningType ::DISTRIBUTION . match_type ,
236243 app_identifier : all_bundle_ids ,
237244 readonly : false
238245 )
@@ -279,7 +286,7 @@ platform :ios do
279286 UI . message ( "Syncing certificates and provisioning profiles for #{ app_config } " )
280287 UI . important ( "App: #{ app_config . bundle_id } , Widget: #{ app_config . widget_bundle_id } " )
281288 match (
282- type : CodeSigningType ::DISTRIBUTION . to_s ,
289+ type : CodeSigningType ::DISTRIBUTION . match_type ,
283290 app_identifier : app_config . all_bundle_ids ,
284291 readonly : is_ci
285292 )
0 commit comments