# 4.10 Xcode Workspace Clean Bug

**URL:** <https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930>\
**Category:** Platform & Builds\
**Tags:** xcode, UE4-10, MAC, unreal-engine, ubt, CPP, question\
**Created:** [November 18, 2015, 5:52pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930 "2015-11-18T17:52:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejustinwalsh](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/thejustinwalsh/32/464751_2.png) [@thejustinwalsh](https://forums.unrealengine.com/u/thejustinwalsh)\
**Post date:** [November 18, 2015, 5:52pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930/1 "2015-11-18T17:52:57Z")

</div>

After updating to 4.10, and subsequently using the xcworkspace, I noticed that if I run the Clean command from within Xcode, it ends up deleting core engine dylib’s and renders the global installation of UE 4.10 useless.

After this happens if I hit Verify on the 4.10 installation of the Engine/Editor from within the Epic Games Launcher. It downloads some stuff, and allows me to use the engine just fine.

To be clear, this is a global installation of 4.10 not a source checkout, running a C++ Project with a generated Xcworkspace.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e67dfedd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e67dfedd](https://forums.unrealengine.com/u/anonymous_user_e67dfedd)\
**Post date:** [November 18, 2015, 7:10pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930/2 "2015-11-18T19:10:44Z")

</div>

Note that this issue was also listed among the grievances in [this question](https://answers.unrealengine.com/questions/334015/ue4-410-xcode-project-generation-and-usage.html). This is a separate issue than splitting the monolithic project into a workspace (which is great), it appears that Product-\>Clean in Xcode also runs Clean unconditionally on the UE4 project included in the workspace, which causes critical engine files in /Users/Shared/UnrealEngine/4.10 to be removed.

As thejustinwalsh mentioned, the only way to recover from this is to run the **Verify** command in the Epic Games Launcher.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [November 18, 2015, 9:46pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930/3 "2015-11-18T21:46:01Z")

</div>

Hey thejustinwalsh-

I was able to reproduce this on my end and have entered a bug report (UE-23624) to investigate this issue further. Since running Verify does seem to fix the problem easily I would continue using that for the time being.

Cheers

---

<div class="post-metadata">

**Author:** ![rotwang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rotwang](https://forums.unrealengine.com/u/rotwang)\
**Post date:** [May 10, 2016, 2:38pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930/4 "2016-05-10T14:38:59Z")

</div>

This happened to me 3 times and I wondered why the engine suddenly is missing dynlibs. So it’s the Clean. Good to know. A Verify restored successfully. I’m on 4.11.2, this bug needs to be fixed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ddbd8b04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ddbd8b04](https://forums.unrealengine.com/u/anonymous_user_ddbd8b04)\
**Post date:** [April 27, 2020, 11:45pm UTC](https://forums.unrealengine.com/t/4-10-xcode-workspace-clean-bug/338930/5 "2020-04-27T23:45:23Z")

</div>

This is still happening (for me at least) on Catalina 10.15.4, Xcode 11.3.1, with UE4.24.3. I see that [Unreal Engine Issues and Bug Tracker (UE-23624)](https://issues.unrealengine.com/issue/UE-23624) is closed as a duplicate. What ticket is a duplicate of? I’d like to follow the progress there and help out if I can.
