macOS: Error: resource fork, Finder information, or similar detritus not allowed
codesign refuses to sign a bundle that contains extended attributes (resource forks, quarantine, FinderInfo).
resource fork, Finder information, or similar detritus not allowedcodesign: resource fork, Finder information, or similar detritus not allowedCommand CodeSign failed with a nonzero exit code resource forkbundle format unrecognized, invalid, or unsuitable Meaning
Strip them before signing: xattr -cr MyApp.app (or xattr -rc). It often appears when files were copied via Finder, zip, or cloud storage that add xattrs. Also clean .DS_Store and ._* files.
Common causes
- Extended attributes on files in the bundle
- Files copied through Finder/zip/Dropbox
- Quarantine attribute
- Frameworks with stray
._files - Build output modified after signing
⚡ Quick fix
xattr -cr /path/MyApp.appthen sign again- Remove
.DS_Storeand._*:find . -name '.DS_Store' -delete - Sign as the last step of the build
Detailed fix by platform
macOS
xattr -lr MyApp.app | headlists attributes;codesign --verify --deep --strict -vvv MyApp.app
How to diagnose
- xattrs — Present?
- Origin — Copy method?
- Order — Signed last?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- "x" can't be opened because it is from an unidentified developer macOS: “app” can’t be opened because it is from an unidentified developer
- Apple could not verify "x" is free of malware macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac
- Command CodeSign failed Command CodeSign failed with a nonzero exit code (errSecInternalComponent / resource fork, Finder information not allowed)
Most viewed in macOS
- is damaged and can’t be opened macOS: “App” is damaged and can’t be opened. You should move it to the Trash.
- Operation not permitted (macOS privacy) macOS: Operation not permitted — Terminal/app lacks Full Disk Access (TCC privacy protection)
- zsh: command not found: brew macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026