From afc9e844054339b8f877affc9129d63ec0f4a67d Mon Sep 17 00:00:00 2001 From: Mark Szabo Date: Tue, 13 Jun 2017 16:46:16 +0200 Subject: [PATCH] Make getMachOExecutable more general --- ipa_installer/ipa_installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipa_installer/ipa_installer.py b/ipa_installer/ipa_installer.py index 84faeb4..484cf4a 100644 --- a/ipa_installer/ipa_installer.py +++ b/ipa_installer/ipa_installer.py @@ -81,7 +81,7 @@ def getMachOExecutable(app_path): path = os.path.join(app_path, filename) if not os.path.isdir(path): output = subprocess.check_output(['file', path]) - if "Mach-O universal binary" in output: + if "Mach-O" in output: output = output.split(":")[0] break return os.path.join(app_path, output) @@ -202,4 +202,4 @@ def getDeviceUUID(): print colored("[+] Starting app...") time.sleep(2) subprocess.call(["sudo", "ios-deploy", "-v", "--no-wifi", "-i", uuid, "--noinstall", "-b", "%s/Payload/%s" % (extracted_resigned_path, app_name)]) -sys.exit(0) \ No newline at end of file +sys.exit(0)