XCode not finding .generated engine files

So the client asked for a Mac build. Yeah…

We have recently upgraded the project to 5.1 and it works on Windows (with a few issues).
Now, for the first time in my life, I have to build for Mac, so they gave me a Mac Mini and I installed what I needed.

I cloned the project and already I had issues generating the project files for XCode, but I overcame that with the command line.
This is what I got:

Last login: Fri Dec  9 17:07:37 on ttys000
user@machine ~ % sh "/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh" -project="/Volumes/SSD/project/project/project.uproject" -game

Setting up Unreal Engine project files...

/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/BatchFiles/Mac
Setting up bundled DotNet SDK
/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/DotNet/6.0.302/mac-arm64
Log file: /Users/user/Library/Application Support/Epic/UnrealBuildTool/Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Android.
See the log file for detailed information

Discovering modules, targets and source code for project...
DEPRECATION: 'IniKeyBlacklist', which is a config key in section [/Script/UnrealEd.ProjectPackagingSettings], in '/Volumes/SSD/project/project/Config/DefaultGame.ini', has been deprecated. Using 'IniKeyDenylist' instead. It is recommended you update your .ini files as soon as possible, and replace IniKeyBlacklist with IniKeyDenylist
DEPRECATION: 'IniSectionBlacklist', which is a config key in section [/Script/UnrealEd.ProjectPackagingSettings], in '/Volumes/SSD/project/project/Config/DefaultGame.ini', has been deprecated. Using 'IniSectionDenylist' instead. It is recommended you update your .ini files as soon as possible, and replace IniSectionBlacklist with IniSectionDenylist
DEPRECATION: 'WhitelistDirectories', which is a config key in section [Staging], in '/Volumes/SSD/project/project/Config/DefaultGame.ini', has been deprecated. Using 'AllowedDirectories' instead. It is recommended you update your .ini files as soon as possible, and replace WhitelistDirectories with AllowedDirectories
/Applications/Xcode.app/Contents/Developer
Generating data for project indexing...    
Library '/Volumes/SSD/project/project/Plugins/FMODStudio/Source/FMODStudio/../../Libs/Mac/libfmodL.dylib' was not resolvable to a file when used in Module 'FMODStudio', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning. 
Library '/Volumes/SSD/project/project/Plugins/FMODStudio/Source/FMODStudio/../../Libs/Mac/libfmodstudioL.dylib' was not resolvable to a file when used in Module 'FMODStudio', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning. 
Generating data for project indexing... 100%
Writing project files...   
Provision not specified or not found for project, searching for compatible match...
Getting signing information via /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/BatchFiles/Mac/RunMono.sh "/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS/IPhonePackager.exe" signing_match "/Volumes/SSD/project/project/project.uproject" -bundlename com.YourCompany.project
                           
Running Mono...            
                           
Running system mono/msbuild, version: Mono JIT compiler version 6.12.0.162 (2020-02/2ca650f1f62 Tue Nov 30 10:18:09 EST 2021)
/Volumes/SSD/UnrealEngine/UE_5.1/Engine /Volumes/SSD/UnrealEngine/UE_5.1/Engine
Executing iPhonePackager signing_match /Volumes/SSD/project/project/project.uproject -bundlename com.YourCompany.project
CWD: /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS
Initial Dir: /Volumes/SSD/UnrealEngine/UE_5.1/Engine
Env CWD: /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS
BranchPath = Mac-mini-di-user///Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS/../.. --- GameBranchPath = machine///Volumes/SSD/project/project
Caching provisions         
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Caching provisions         
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Searching for mobile provisions that match the game 'project' (distribution: False) with CFBundleIdentifier='com.YourCompany.project' in '/Users/user/Library/MobileDevice/Provisioning Profiles/'
Caching provisions         
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Searching for mobile provisions that match the game 'project' (distribution: False) with CFBundleIdentifier='com.YourCompany.project' in '/Users/user/Library/MobileDevice/Provisioning Profiles/'
No matching Signing Data found!
                          
No matching provision file was discovered for /Volumes/SSD/project/project/project.uproject. Please ensure you have a compatible provision installed.
Provision not specified or not found for UnrealGame, searching for compatible match...
Getting signing information via /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/BatchFiles/Mac/RunMono.sh "/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS/IPhonePackager.exe" signing_match Engine -bundlename com.YourCompany.UnrealGame
                            
Running Mono...             
                            
Running system mono/msbuild, version: Mono JIT compiler version 6.12.0.162 (2020-02/2ca650f1f62 Tue Nov 30 10:18:09 EST 2021)
/Volumes/SSD/UnrealEngine/UE_5.1/Engine /Volumes/SSD/UnrealEngine/UE_5.1/Engine
Executing iPhonePackager signing_match Engine -bundlename com.YourCompany.UnrealGame
CWD: /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS
Initial Dir: /Volumes/SSD/UnrealEngine/UE_5.1/Engine
Env CWD: /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS
BranchPath = Mac-mini-di-user///Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS/../.. --- GameBranchPath = Mac-mini-di-user///Volumes/SSD/UnrealEngine/UE_5.1/Engine/Binaries/DotNET/IOS/../..
Caching provisions          
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Caching provisions          
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Searching for mobile provisions that match the game 'UnrealGame' (distribution: False) with CFBundleIdentifier='com.YourCompany.UnrealGame' in '/Users/user/Library/MobileDevice/Provisioning Profiles/'
Caching provisions          
Finding provisions in /Volumes/SSD/UnrealEngine/UE_5.1/Engine/Build/IOS
Searching for mobile provisions that match the game 'UnrealGame' (distribution: False) with CFBundleIdentifier='com.YourCompany.UnrealGame' in '/Users/user/Library/MobileDevice/Provisioning Profiles/'
No matching Signing Data found!
                           
No matching provision file was discovered for (null). Please ensure you have a compatible provision installed.
Writing project files... 100%
user@machine ~ % 

I have no idea what these provisions are, but as I understand it’s something to do with the signature for distribution…
However, the project was created and I could open it in XCode.

Now, it just won’t compile. Apparently, it cannot find the .generated files from the engine:


Showing Recent Issues
In file included from /Volumes/SSD/project/project/Intermediate/Build/Mac/arm64/projectEditor/Development/Engine/SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.h:369:

In file included from ./Runtime/Engine/Public/EngineSharedPCH.h:322:

/Volumes/SSD/UnrealEngine/UE_5.1/Engine/Source/Runtime/InputCore/Classes/InputCoreTypes.h:10:10: fatal error: 'InputCoreTypes.generated.h' file not found

#include "InputCoreTypes.generated.h"

         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.


The files exist in the engine folder, but the project seems to not be able to find them. I have no experience with XCode and I have no idea what went wrong. May just be an issue with search paths?

I tried compiling a new clean third person project and I have the same issue (with different .generated files, but always engine files) when I add code to XCode and try the “archive” or “build” command.

I fixed the issue by downgrading to 5.0.

1 Like