Skip to content

Commit f0d63e7

Browse files
committed
fix: don't require dev cert for dist cert
This was necessary for Xcode, but not anymore with fastlane.
1 parent c4774d0 commit f0d63e7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

sign.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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")

0 commit comments

Comments
 (0)