# C++ class creation will break sync between XCODE and EDITOR (!)

**URL:** <https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889>\
**Category:** Feedback & Requests\
**Tags:** unreal-engine\
**Created:** [December 10, 2025, 8:32pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889 "2025-12-10T20:32:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 10, 2025, 8:32pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/1 "2025-12-10T20:32:22Z")

</div>

I tried to use the report a bug but its too demanding, im only a user of unreal…

Step to reproduce:  
Make sure the xcode has not been build since changes made

1. Make sure your Xcode have at list 1 header and 1 cpp file with a syntax error that will prevent it from performing a build

2. Using the content drawer, create a C++ actor class and make sure to create a new directory for it in the creation window itself (under public or private, “legally”)

3. While unreal try to compile the newly created C++ file, it will fail (because Xcode already had some syntax error we intentionally made for this test)

4. Use tools - \> refresh xcode project

The issue itself (first fresh project, only coding for a short time in it):

> [@How to create a folder in C++ XCODE unreal?](https://forums.unrealengine.com/t/how-to-create-a-folder-in-c-xcode-unreal/2683287/4):
>
> Ok this might save someone in the future, otherwise i would not write this After this line manage to save the editor from unable to be opened: sh “/Users/Shared/Epic Games/UE\_5.7/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh” -project=“/Volumes/MyDisk/UnrealProjects/MyTestProject.uproject” -game -engine Then i rebuild it by opening the project file (it fail before as i mentioned) . this time it did rebuild. And after this rebuild the files are sync All that happen just because i creat…

I hope you guys going to fix this entire process as soon as the next update . this is very hard to work with. Please add on 5.7.2 some mechanism that force Xcode and editor to sync on demand. regenerate project files just does not always work on mac.

Thank you

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [December 11, 2025, 11:41am UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/2 "2025-12-11T11:41:56Z")

</div>

Could you post the exact log message of that syntax error? I don’t know if that still exists in UE 5.7, but you could check if [this](https://forums.unrealengine.com/t/conflict-running-unreal-engine-on-mac-os/2657924) would solve your issues.

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 11, 2025, 12:02pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/3 "2025-12-11T12:02:36Z")

</div>

All this happen in latest unreal version, mac os 15.7.2, and latest Xcode.

Does the log saves everything in the lifetime of the project? if so i can try to search back and find it.

Look at the attached post that i added. solution was there.

I Appreciate the Epic team for bringing this to mac and doing efforts, I don’t take it for granted. But if they really want more mobile devs to adopt this platform seriously for making games for ios they really need to triple down on the entire workflow with more devs in my opinion. The out of the box experience is really bad right now : (

Xcode dont use unreal types colors in text, issues with speed, live coding, generate project file is broken from macOS ui and even using terminal which works does not yield expected results. Those things are fundamental to the workflow and are currently half broken, its should not be like that…

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 11, 2025, 12:13pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/4 "2025-12-11T12:13:33Z")

</div>

I look at his post, seems like a different issue then the one i detailed.  
My issue describe the poor functionality of unreal engine when trying to sync the UE Editor with Xcode if a C++ class get “lost” due to creation of the class while project is not able to be built in xcode (even something simple like syntax mistake by user somewhere in the code).

you would expect the issue would be solved by fixing the syntax, compile again, and the class would show up in both Xcode and Editor. but it does not. and re - sync it seems almost impossible.

This issue seems to be easily fixed in windows environment by simply using the “generate project files” with visual studio.

Because the workflow is not good right now, this feature is not working in xcode + unreal in mac, and the terminal command does not sync them either even tho it does execute the regenerate of project files. even if the project was not broken due to me deleting the 3 known folders, it would still not fix it.

Actually, im not sure if there is any other way beside rebuild the entire project using the main unreal branch that exist in the documents folder (im not sure how to describe it, but its path is in my attached post)

I hope Epic will just make some button for mac users, in unreal engine editor (not the “refresh xcode project” it does not fix anything) that do whatever needed to be done so the editor and xcode always stay in sync as long as you can build.

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [December 11, 2025, 1:09pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/5 "2025-12-11T13:09:02Z")

</div>

For Unreal C++ projects on Mac, I can really only recommend JetBrains Rider, as XCode takes ages for indexing the project files. There is something like “generate project files” on mac, but that does not work, always have to do that manually.

in terminal cd to batchfile folder of your UE version

```auto
cd /Users/Shared/Epic\ Games/UE_5.7/Engine/Build/BatchFiles/Mac

```

Then regenerate the project files:

```auto
./GenerateProjectFiles.sh /Users/YourUsername/Documents/UnrealProjects/UEProject/UEProject.uproject -Editor UEProject

```

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 11, 2025, 1:57pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/6 "2025-12-11T13:57:55Z")

</div>

Thank you for this information. If i use jetBrain i will need to install Visual studio anyway, so in that case i will just use VS.

But once i get to build it to IOS i will encounter other issues around it so im not sure i want to do that tbh

At least with Xcode i have enough tutorials online around the export to IOS and all the apple’s nonsense in that area

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [December 11, 2025, 2:08pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/7 "2025-12-11T14:08:22Z")

</div>

For Rider on mac you don’t need to install VS, it will take the XCode build tools. It’s your decision what IDE to use, but I would give Rider a try. It’s even free for non-commercial use.

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 11, 2025, 3:38pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/8 "2025-12-11T15:38:28Z")

</div>

does the rider have the option to regenerate project files and sync properly with the editor?

---

<div class="post-metadata">

**Author:** ![OrbitalZones](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/orbitalzones/32/1214470_2.png) [@OrbitalZones](https://forums.unrealengine.com/u/OrbitalZones)\
**Post date:** [December 11, 2025, 6:08pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/9 "2025-12-11T18:08:24Z")

</div>

I just tried this and deleted the “Binaries,” “Intermediate,” and “DerivedDataCache” folders in my project, started Rider, and found that these folders are recreated.

These are the processes while the project is loading:

 ![Screenshot 2025-12-11 at 6.51.43 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/2/a02c0e55b2dd68c1d9305b447e2875b6ac85f1be.png)

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 12, 2025, 2:38am UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/10 "2025-12-12T02:38:48Z")

</div>

I tried rider, it share the same problem with Xcode, some files just dont get into sync from the get go (even if created while build is successful)

I haven’t tried to delete those directories (last time i did that the entire project was unable to load, as seen in my attached post)

I will try this first with Xcode and then with rider if it fail

Th problem is still with unreal in macOS. because both IDEs share same issue

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 12, 2025, 7:03am UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/11 "2025-12-12T07:03:17Z")

</div>

It get worse.

Rider - same as xcode. same issues but less indexing time. Free for none commercial but its not my case

Files out of sync issue: its getting even worse.  
I changed a folder name in finder.

I rebuild the entire editor after deleting the right folders, forced the elimination of the old redirectors from terminal, and some other advices from the ai assistant. Nothing works. Folder exist and is working in Xcode with #include and everything. but refuse to show in editor.

The current state of unreal + mac is really bad right now. none of epic team is even reply to this post.

Its a clean project with basically nothing on it. 200% friction on every step by just creating new classes.

Epic may you please reply to this post and declare intentions about all those issues?

Thank you guys …

---

<div class="post-metadata">

**Author:** ![Userofunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Userofunreal](https://forums.unrealengine.com/u/Userofunreal)\
**Post date:** [December 12, 2025, 1:35pm UTC](https://forums.unrealengine.com/t/c-class-creation-will-break-sync-between-xcode-and-editor/2683889/12 "2025-12-12T13:35:27Z")

</div>

Im sorry to spam but im finding crucial errors as if it was pre - alpha version of some kind.  
Apology in advance, i dont try to be disrespectful i honestly ask if you did any QA on Xcode with unreal with the out of the box experience?

Unreal didn’t recognize a folder, so it created another one on the exact same level ( i was assuming it will either will not allow it, or will be forced to re calculate the structure of directory and fix it on the spot).. Which ended up in 2 folders identical in the same scope. even mac OS cant have 2 folders with the same name in the same scope in finder. how is that even possible?

Xcode recognize both of them, unreal editor dont show any of them, and Xcode build successfully.

Is anyone from epic games gonna give any attention to this post? im only 3 days with C++ in unreal & xcode, and it has already broken in every level possible of classes creation….

I haven’t even written any logic yet, im only creating classes so far. and not many of them, around 5-6 in total and fighting with the terminal because for every class i create it go out of sync and generate new issues .
