From 10776ef86fc42c6930cafe8196d3264012972c43 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 8 May 2023 22:18:20 -0700 Subject: [PATCH] Added error message if no provisioning profile found PiperOrigin-RevId: 530498369 --- mediapipe/examples/ios/link_local_profiles.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mediapipe/examples/ios/link_local_profiles.py b/mediapipe/examples/ios/link_local_profiles.py index bc4a06c97..d353c337e 100755 --- a/mediapipe/examples/ios/link_local_profiles.py +++ b/mediapipe/examples/ios/link_local_profiles.py @@ -147,12 +147,18 @@ def main(): 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): if not name.endswith(".mobileprovision"): continue + profiles_found = True profile_path = os.path.join(profile_dir, name) 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__": main()