@@ -297,6 +297,10 @@ def codesign_async(identity: str, component: Path, entitlements: Optional[Path]
297297 return subprocess .Popen ([* cmd , str (component )], stdout = PIPE , stderr = PIPE )
298298
299299
300+ def clean_dev_portal_name (name : str ):
301+ return re .sub ("[^0-9a-zA-Z]+" , " " , name ).strip ()
302+
303+
300304def fastlane_auth (account_name : str , account_pass : str ):
301305 my_env = os .environ .copy ()
302306 my_env ["FASTLANE_USER" ] = account_name
@@ -368,7 +372,7 @@ def fastlane_register_app_extras(
368372 "-g" ,
369373 id ,
370374 "-n" ,
371- id ,
375+ clean_dev_portal_name ( f"ST { id } " ) ,
372376 env = my_env ,
373377 )
374378
@@ -398,7 +402,7 @@ def fastlane_register_app(account_name: str, account_pass: str, bundle_id: str,
398402 "--app_identifier" ,
399403 bundle_id ,
400404 "--app-name" ,
401- "ST " + bundle_id . replace ( "." , " " ),
405+ clean_dev_portal_name ( f "ST { bundle_id } " ),
402406 env = my_env ,
403407 )
404408
@@ -497,7 +501,7 @@ def fastlane_get_prov_profile(
497501 "--app_identifier" ,
498502 bundle_id ,
499503 "--provisioning_name" ,
500- f"ST { bundle_id } { prov_type } " ,
504+ clean_dev_portal_name ( f"ST { bundle_id } { prov_type } " ) ,
501505 "--force" ,
502506 "--skip_install" ,
503507 "--include_mac_in_profiles" ,
0 commit comments