# Error with codesign when building for Mac: "resource fork, Finder information, or similar detritus not allowed"

**URL:** <https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question, CPP\
**Created:** [December 10, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692 "2024-12-10T14:35:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucianoMorpurgo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucianoMorpurgo](https://forums.unrealengine.com/u/LucianoMorpurgo)\
**Post date:** [December 10, 2024, 2:35pm UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692/1 "2024-12-10T14:35:39Z")

</div>

Hello fellows,  
I am following a beginner tutorial on how to compile your first class in UE; I created a blank C++ project in the editor, added a C++ class and copied the code as in the tutorial  
([Quick Start Guide to Player-Controlled Cameras in Unreal Engine CPP | Unreal Engine 5.5 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/quick-start-guide-to-player-controlled-cameras-in-unreal-engine-cpp))  
Whether if I build the code from XCode or launch on Mac platform directly from UE editor, the compiling fails with the error

```auto
Signing Identity: "Sign to Run Locally"
    
/usr/bin/codesign [....]
/Users/luciano/Documents/Unreal Projects/HowTo_PlayerCamera/Binaries/Mac/HowTo_PlayerCamera.app: replacing existing signature
/Users/luciano/Documents/Unreal **Projects/HowTo_PlayerCamera/Binaries/Mac/HowTo_PlayerCamera.app: resource fork, Finder information, or similar detritus not allowed**

```

I’m on UE 5.5, MacOS Sequoia 15.1, Xcode 16.1. I tried all the solutions I could find (all of them for older versions of… all) with no luck.

Any idea?  
Cheers  
Luciano

---

<div class="post-metadata">

**Author:** ![Evman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Evman](https://forums.unrealengine.com/u/Evman)\
**Post date:** [May 3, 2025, 4:59am UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692/2 "2025-05-03T04:59:57Z")

</div>

Did you ever fix this?

---

<div class="post-metadata">

**Author:** ![Evman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Evman](https://forums.unrealengine.com/u/Evman)\
**Post date:** [May 8, 2025, 6:14am UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692/3 "2025-05-08T06:14:01Z")

</div>

For others that come to this post looking for an answer, the fix is moving the project _off_ iCloud drive. i.e don’t have them in a folder that is getting stored on iCloud (like the Documents folder). It seems the “detritus” is metadata iCloud keeps adding to the files as it syncs them. Given this is part of Apple’s ecosystem I’m surprised this is broken in XCode 🤷.

---

<div class="post-metadata">

**Author:** ![SourActivity9421](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SourActivity9421](https://forums.unrealengine.com/u/SourActivity9421)\
**Post date:** [November 25, 2025, 1:46am UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692/4 "2025-11-25T01:46:35Z")

</div>

Thanks a lot

---

<div class="post-metadata">

**Author:** ![francescortiz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@francescortiz](https://forums.unrealengine.com/u/francescortiz)\
**Post date:** [January 17, 2026, 2:14pm UTC](https://forums.unrealengine.com/t/error-with-codesign-when-building-for-mac-resource-fork-finder-information-or-similar-detritus-not-allowed/2194692/5 "2026-01-17T14:14:55Z")

</div>

For me, removing the directory from iCloud was not enough. I did more research and found this post that gives a detailed explanation of how to remove it completely:

> <https://stackoverflow.com/questions/39652867/code-sign-error-in-macos-monterey-xcode-resource-fork-finder-information-or>

I got a few “Permission denied” errors running the command, so I ran it again with sudo and it was fixed:

```shell
sudo xattr -cr <directory>

```

**PS:** ⚠‼ **Be extremely cautious with this command! You might corrupt your system if you don’t do it right, and you might even end up having to reinstall macOS! And it will happen without warning or notice!** ‼⚠
