diff --git a/.gitignore b/.gitignore index 0bbad82..0545365 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ build/ *.cyan .DS_Store +*.ipa +*.app/ + diff --git a/cyan/extras/zero.requirements b/cyan/extras/zero.requirements new file mode 100644 index 0000000..dbf9d61 Binary files /dev/null and b/cyan/extras/zero.requirements differ diff --git a/cyan/tbhtypes/main_executable.py b/cyan/tbhtypes/main_executable.py index caa8ddd..01c5af8 100644 --- a/cyan/tbhtypes/main_executable.py +++ b/cyan/tbhtypes/main_executable.py @@ -137,9 +137,12 @@ class MainExecutable(Executable): print("[!] failed to merge new entitlements, are they valid?") def sign_with_entitlements(self, entitlements: str) -> bool: - return subprocess.run( - [self.ldid, f"-S{entitlements}", "-M", "-Cadhoc", self.path] - ).returncode == 0 + return subprocess.run([ + self.ldid, + f"-S{entitlements}", "-M", "-Cadhoc", + f"-Q{self.install_dir}/extras/zero.requirements", + self.path + ]).returncode == 0 def lief_inject(self, cmd: str) -> None: if self.inj is None: # type: ignore