Skip to content

Commit 8375563

Browse files
watwarsmeta-codesync[bot]
authored andcommitted
fast_adhoc: also accept /var/select/developer_dir
Summary: Per https://www.internalfb.com/diff/D106547509?dst_version_fbid=1507671717725399&transaction_fbid=1031507576074424 Reviewed By: IanChilds Differential Revision: D108192640 fbshipit-source-id: 97d16b88212f2733261b7ae9ce8838c7f7ecf2eb
1 parent de4ef2c commit 8375563

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

prelude/apple/tools/code_signing/fast_adhoc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ def _logged_subprocess_run(
6262

6363
def is_fast_adhoc_codesign_allowed(probe_enabled: bool) -> bool:
6464
if sys.platform == "darwin":
65-
if not os.path.exists("/var/db/xcode_select_link"):
65+
# Xcode's active-developer-dir symlink is /var/db/xcode_select_link on
66+
# older macOS and /var/select/developer_dir on Sonoma+/Xcode 15+.
67+
if not os.path.exists("/var/db/xcode_select_link") and not os.path.exists(
68+
"/var/select/developer_dir"
69+
):
6670
_LOGGER.info(
6771
"Developer tools do not exist, cannot use `otool`, fast adhoc signing not allowed"
6872
)

0 commit comments

Comments
 (0)