Need help to set Xcode up for compiling C++.

Hey there! I need help on something that seems to be pretty basic but still I don’t get it to work. I recently downloaded Unreal Engine 5.2.1 from the launcher and had my fist look around. Everything seemed to work fine. The only thing I noticed, was that I was not able to open two project at once, even if I go in to the finder and open the second project manually (just nothing happens). Since I found another way to migrate stuff from a project to another, it didn’t bother me. Then I purchased this course witch teaches you how to write basic C++ code for UE, such as drawdebugsphere, apply worldoffset and rotation and other basic stuff. So far so good. I found out that Visual Studio 2022 is not an option for Mac since it does not support C++ for Mac, so I downloaded VSCode. I found this documentation and tried to set VSCode up and running.

I already had problems setting up Intellisense. The includePath property seemed to be wrong. It said that no Intermediate, no Plugins and no Source folder are found, in VSCode under Problem section. After google research I found a post where someone sad „\\“ is not valid instead it should be "${workspaceFolder}/Intermediate/“ So two of three folder’s are now seen by VSCode but Plugins folder still missing. When checking the folder manually there is indeed no Plugins folder unless I go in to the UE5/engine folder. Soooooo… fk Intellisense. :face_with_hand_over_mouth: Let’s try to compile my C++ Code. Let’s set run and debug to „editor (Development)“ and compile. Unreal Engin should start up. I see in the Dock the dot beneath Unreal Editor icon, so it should start. Nothing happens. Still nothing happens. Ok let’s shut Unreal editor down and start it again. Then… —> The following modules are missing or built with a different engine. Would you like to rebuild them now? YES…. (….) could not be compiled. Try rebuild from source manually. (….) Ok f**k VSCode… Let’s try to compile from Xcode instead. Since I am not able to open the old project let’s make a new one and start all over… Making an actor. Write some C++ code. Let’s try to build with Xcode. This time Unreal Editor start’s indeed. No crashing at this point but the message —> „The following modules are missing or built with a different engine….“ comes strait away…! Hm ok let’s try to open another project then… Hm… in the loading screen of UE the text seems to be blurry… also the Unreal Editor icon in the dock is missing. The other project starts up. Hm… All the text in the dropdown menus at the top of the screen seems to be blurry too. Hm… Ok something went wrong. Uninstall Unreal Engine, uninstall VSCode uninstall Xcode… Let’s do some research. Ok UE 5.2.1 need’s Xcode 14.2 so let’s get 14.2 instead of 14.3. Done… Clang is also installed version 14.0.0 (I don’t know if I need it when only working with Xcode?) LLDB extension installed as well (also no clue if needed for only Xcode…)… Get VSCode again. Go through the steps of „Setting Up VS Code for Unreal Engine“… Intellisense still the same problem… Hm Intellisense indeed not needed as of my research… so let’s go on. New UE project. Create an Actor… write some C++ Code, compile it from the UE Editor. Debugsphere gets visible ok so all working fine… so then let’s try to compile from VSCode again… Exact the same problem as the first time with VSCode. „The following modules are missing or build….“ Hm… (……). More research… No answer… Ok let’s try again from Xcode… New Project, new actor, new C++ code… Compile on the fly in Editor. Check works… Compile form Xcode (this time 14.2…) Same as last time… „The following modules….“ Text again blurry… Icon again missing… Dropdown menus text blurry… What am I missing? What do I wrong? I did all of this with a MacBook Pro m1(probably that’s the mistake… ;)) 16gb RAM. I think I am missing something since it should be possible to Compile C++ code from Xcode. My goal is to be able to Compile from Xcode and then see if I gonna use another Ide or text editor… What do you need from me in order to identify the cause of my problem? I hope someone can help me out. I would love to explore Unreal Engine and C++, since learning C++ is the way to go (at least for me… :wink: ) <3 (Sorry for the long description…)

I think to get “Metal support” on Mac you might need to go through XCode (but this has the requirement to get a cert through Apple for the Engine :laughing: )

I was able to dig to find this for 4.25, but you can try following the steps.

as for the Official documentation for setting up XCode so you can get “Metal support” the official docs are here

thank’s for your response! I came across the GitHub Guide as well and try to mimic all he did… no victory… I think Metal support did work… On Mac you need Xcode anyway to launch Unreal Engine… Only when compiling from Xcode Unreal bugs out…