File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1143,17 +1143,16 @@ def run():
11431143 "Distribution" : next ((n for n in common_names if "Distribution" in n ), None ),
11441144 }
11451145
1146- if common_names ["Development" ] is None :
1147- raise Exception ("No development certificate found, aborting." )
1148-
11491146 if common_names ["Distribution" ] is not None :
11501147 print ("Using distribution certificate" )
11511148 common_name = common_names ["Distribution" ]
11521149 if "-d" in sign_args :
11531150 raise Exception ("Debugging cannot be enabled on distribution certificate, use development." )
1154- else :
1151+ elif common_names [ "Development" ] is not None :
11551152 print ("Using development certificate" )
11561153 common_name = common_names ["Development" ]
1154+ else :
1155+ raise Exception ("Unrecognized code signing certificate, aborting." )
11571156
11581157 prov_profile = Path ("prov.mobileprovision" )
11591158 account_name_file = Path ("account_name.txt" )
You can’t perform that action at this time.
0 commit comments