From 2e790c6430a6821fabc43e54bb08d18c595790aa Mon Sep 17 00:00:00 2001 From: vraspar Date: Mon, 29 Jul 2024 14:05:52 -0700 Subject: [PATCH] symlink correctly --- tools/ci_build/github/apple/build_apple_framework.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/ci_build/github/apple/build_apple_framework.py b/tools/ci_build/github/apple/build_apple_framework.py index 749bc97898488..b92baa3da6872 100644 --- a/tools/ci_build/github/apple/build_apple_framework.py +++ b/tools/ci_build/github/apple/build_apple_framework.py @@ -113,8 +113,12 @@ def _build_for_apple_sysroot( # create the symbolic link pathlib.Path(os.path.join(framework_dir, "Versions", "Current")).symlink_to("A", target_is_directory=True) - pathlib.Path(os.path.join(framework_dir, "Headers")).symlink_to("Versions/Current/Headers") - pathlib.Path(os.path.join(framework_dir, "Resources")).symlink_to("Versions/Current/Resources") + pathlib.Path(os.path.join(framework_dir, "Headers")).symlink_to( + "Versions/Current/Headers", target_is_directory=True + ) + pathlib.Path(os.path.join(framework_dir, "Resources")).symlink_to( + "Versions/Current/Resources", target_is_directory=True + ) pathlib.Path(os.path.join(framework_dir, "onnxruntime")).symlink_to("Versions/Current/onnxruntime") else: