iOS Packaging fails because of xattr
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.
asked Oct 16 '18 at 10:49 AM in Packaging & Deployment
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.
answered Oct 17 '18 at 05:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here