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: