Added error message if no provisioning profile found
PiperOrigin-RevId: 530498369
This commit is contained in:
parent
65cb5f4e6b
commit
10776ef86f
|
@ -147,12 +147,18 @@ def main():
|
||||||
f"Looking for profiles for app ids with prefix '{bundle_id_prefix}' in '{profile_dir}'"
|
f"Looking for profiles for app ids with prefix '{bundle_id_prefix}' in '{profile_dir}'"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
profiles_found = False
|
||||||
for name in os.listdir(profile_dir):
|
for name in os.listdir(profile_dir):
|
||||||
if not name.endswith(".mobileprovision"):
|
if not name.endswith(".mobileprovision"):
|
||||||
continue
|
continue
|
||||||
|
profiles_found = True
|
||||||
profile_path = os.path.join(profile_dir, name)
|
profile_path = os.path.join(profile_dir, name)
|
||||||
process_profile(profile_path, our_app_id_re)
|
process_profile(profile_path, our_app_id_re)
|
||||||
|
|
||||||
|
if not profiles_found:
|
||||||
|
print("Error: Unable to find any provisioning profiles " +
|
||||||
|
f"(*.mobileprovision files) in '{profile_dir}'")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user