# GitDependencies.sh libraries disallowed by system policy on macOS

**URL:** <https://forums.unrealengine.com/t/gitdependencies-sh-libraries-disallowed-by-system-policy-on-macos/2484352>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, question\
**Created:** [May 1, 2025, 12:55am UTC](https://forums.unrealengine.com/t/gitdependencies-sh-libraries-disallowed-by-system-policy-on-macos/2484352 "2025-05-01T00:55:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeff.sult](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jeff.sult](https://forums.unrealengine.com/u/jeff.sult)\
**Post date:** [May 1, 2025, 12:55am UTC](https://forums.unrealengine.com/t/gitdependencies-sh-libraries-disallowed-by-system-policy-on-macos/2484352/1 "2025-05-01T00:55:38Z")

</div>

Hello,

I’m attempting to build the engine (5.5.4) from source on my Mac. When I try to run `Setup.command`, I get a security popup saying that “Apple could not verify (xyz.dylib) is free of malware that may harm your Mac or compromise your privacy”.

My logs look like:

```auto
jeff@computer-name Engine % ./Setup.command
Registering git hooks... (this will override existing ones!)
Failed to load <repo path>/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib, error: dlopen(<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib, 0x0001): tried: '<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib' (code signature in <24FB2364-94A7-3C04-A351-0D2EABC87C1F> '<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/Users/jeff/Documents/Freerun/Engine/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib' (no such file), '<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib' (code signature in <24FB2364-94A7-3C04-A351-0D2EABC87C1F> '<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/libhostpolicy.dylib' not valid for use in process: library load disallowed by system policy)
An error occurred while loading required library libhostpolicy.dylib from [<repo path>/Engine/Binaries/DotNET/GitDependencies/osx-arm64/]

```

I’m able to bypass this on a file-by-file level through the Privacy & Security tab in System Preferences by clicking “Allow Anyway” next to the “(xyz.dylib) was blocked to protect your Mac” message, but doing this is incredibly obnoxious as there are quite a few libraries, and I’m worried that I’ve screwed something up that will bite me in the butt down the road.

Is there any setup step I might have missed that would cause this, or have I somehow made a mistake either in the download process or in setting up my development environment?

If any of this is relevant: I’m on an M1Max MBP running Sequoia 15.4.1. I’m using the Xcode command line tools rather than a full install, since I use a different IDE. I downloaded the source using the “Download ZIP” option on GitHub. I have git and git-lfs installed through Homebrew. This occurs even if I `sudo`.

---

<div class="post-metadata">

**Author:** ![jeff.sult](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jeff.sult](https://forums.unrealengine.com/u/jeff.sult)\
**Post date:** [May 1, 2025, 7:06pm UTC](https://forums.unrealengine.com/t/gitdependencies-sh-libraries-disallowed-by-system-policy-on-macos/2484352/2 "2025-05-01T19:06:53Z")

</div>

I found the problem, after a suggestion from @speedbacon on the Unreal Source discord. Downloading the source as a zip caused macOS to quarantine all of the files in it. Cloning directly from GitHub sidestepped that problem entirely.

Another suggestion was to use `xattr` to clear the `com.apple.quarantine` flag from the unzipped files, but I’d already nuked them and didn’t get a chance to try it out.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 31, 2025, 7:07pm UTC](https://forums.unrealengine.com/t/gitdependencies-sh-libraries-disallowed-by-system-policy-on-macos/2484352/3 "2025-05-31T19:07:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
