# iOS Packaging fails because of xattr

**URL:** <https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730>\
**Category:** Mobile\
**Tags:** xcode-ios, unreal-engine, iphone, UE4, question\
**Created:** [October 16, 2018, 10:49am UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730 "2018-10-16T10:49:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BigJohn83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BigJohn83](https://forums.unrealengine.com/u/BigJohn83)\
**Post date:** [October 16, 2018, 10:49am UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/1 "2018-10-16T10:49:44Z")

</div>

Hi all  
I’m on Mac OS 10.13.6, and whenever I try and Launch my project it ends up failing. I see this in the log near the end:

/Users/johnher/Documents/Unreal Projects/StarDomain 4.14/Binaries/IOS/Payload/StarDomain.app: resource fork, Finder information, or similar detritus not allowed

Googling this shows that the .app file got some xattr assigned to it somehow. But no matter how many times I clear all extended attributes from all files in my project, the .app file always ends up with some extended attributes on it.

---

<div class="post-metadata">

**Author:** ![BigJohn83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BigJohn83](https://forums.unrealengine.com/u/BigJohn83)\
**Post date:** [October 17, 2018, 5:49am UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/2 "2018-10-17T05:49:03Z")

</div>

In typical fashion I managed to solve this a day after making this post. So maybe this information would be helpful to someone in the future:

It seems MacOS adds the FinderInfo extended attribute if the OS is using the file. In my case, I had iCloud Sync turned on, which includes the Documents folder. And since Unreal’s default Projects Folder is under Documents, it meant that entire folder was getting synced to the cloud with every change that happens during Launch, which also then sets the FinderInfo extended attribute on those files.

The solution was to move my project out of the Documents folder and into my Home folder. Then I cleared all extended attributes (using “sudo xattr -cr ./” from inside the project’s folder). Then I loaded the engine and manually browsed to the project, and it built just fine.

---

<div class="post-metadata">

**Author:** ![rainb00ts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rainb00ts](https://forums.unrealengine.com/u/rainb00ts)\
**Post date:** [July 23, 2020, 9:35pm UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/3 "2020-07-23T21:35:52Z")

</div>

still relevant in 2020! thanks for saving me some hair today.

A weird one, because I had no issues building from inside of a cloud synced folder prior to switching to a source-compiled version of the engine, so I suspect the Epic Launcher version of the engine works around this somehow, though I admit I have no idea how that could be…

Either way, appreciate you following up on your own post here to help others!

---

<div class="post-metadata">

**Author:** ![airborneinf82](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@airborneinf82](https://forums.unrealengine.com/u/airborneinf82)\
**Post date:** [January 6, 2021, 1:30am UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/4 "2021-01-06T01:30:52Z")

</div>

Totally saved my butt! Spent an entire day in vein trying to fix my issue. THANK GOD I found this. This was 100% the fix for me. Thank you for your follow up!

---

<div class="post-metadata">

**Author:** ![solarisx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@solarisx](https://forums.unrealengine.com/u/solarisx)\
**Post date:** [May 25, 2022, 9:29am UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/5 "2022-05-25T09:29:25Z")

</div>

With UE5 this happens too. Thanks for posting this answer!

---

<div class="post-metadata">

**Author:** ![anon31709053](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon31709053](https://forums.unrealengine.com/u/anon31709053)\
**Post date:** [March 19, 2023, 3:29pm UTC](https://forums.unrealengine.com/t/ios-packaging-fails-because-of-xattr/435730/6 "2023-03-19T15:29:19Z")

</div>

> [@BigJohn83](#):
>
> resource fork, Finder information, or similar detritus not allowed

Hi, can you please explained it by Steps? How exactly do you clear all extended attributes? Where in Xcode? Where is that file located? This bug is very frustrating, explaining in detail would help a lot.

Thank you

\*\* Update \*\*

I did it using this App:

> **[‎CleanDetritus](https://apps.apple.com/us/app/cleandetritus/id1161108431?ls=1&mt=12)**
>
> ‎using old Xcode projects in Xcode gives an error related to old RSRCS format relics:
> 
> 
> /Users/ingconti/Library/Developer/Xcode/DerivedData/.......Products/Debug-iphoneos/MyApp.app: resource fork, Finder information, or similar detritus not...
