Skip to content

Commit

Permalink
Make getMachOExecutable more general
Browse files Browse the repository at this point in the history
  • Loading branch information
markszabo authored Jun 13, 2017
1 parent 5b50c8a commit afc9e84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipa_installer/ipa_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
sys.exit(0)

0 comments on commit afc9e84

Please sign in to comment.