ProjectEditor.Target.cs can't be found UE5.6

Couldn’t find target rules file for target ‘ProjectEditor’ in rules assembly ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’

Location: /Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Intermediate/Build/BuildRules/UE5Rules.dll

I actually don’t understand this error anymore!!! I rebuild the project I updated the .uproject file. I checked that the target file is at the correct location and has the right code. Please help

for those that want the complete terminal command strings wich led to that

ivory@Mac FPMmoRpgTheMist % rm -rf Binaries Intermediate Saved .vs

ivory@Mac FPMmoRpgTheMist % “/Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh” \

-project=“/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/FPMmoRpgTheMist.uproject” -game

Setting up Unreal Engine project files…

Setting up bundled DotNet SDK

/Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/DotNet/8.0.300/mac-arm64

Log file: /Users/ivory/Library/Application Support/Epic/UnrealBuildTool/Log_GPF.txt

Generating XCode project files:

Discovering modules, targets and source code for project…

Adding projects for all targets…

Adding projects for all targets took 7.75s

Adding projects for all game projects took 0.00s

Adding projects for all modules took 6.30s

Choosing MODERN XCODE based on .ini settings

Compiling with Mac SDK 15.5, minimum Target OS version 14.00

Adding additional Xcode project info took 31.78s

Compiling Rules Assemblies 100%

Creating Build Targets 100%

Creating Build Targets took 0.84s

Generating data for project indexing… 100%

Generating data for project indexing took 11.93s

Writing project files…

Writing xcode workspace /Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/FPMmoRpgTheMist (Mac).xcworkspace

Writing project files… 100%

Writing project files took 34.17s

Generating VisualStudioMac project files:

Discovering modules, targets and source code for project…

Adding projects for all targets…

Adding projects for all targets took 0.01s

Adding projects for all game projects took 0.00s

Adding projects for all modules took 0.48s

Unable to compute VC include paths on non-Windows host

Writing project files… 100%

Writing project files took 0.02s

Generating QueryTargets data for editor…

Compiling Rules Assemblies 100%

Writing Query Target Info 100%

Generating QueryTargets data for editor took 0.03s

Result: Succeeded

Total execution time: 228.79 seconds

ivory@Mac FPMmoRpgTheMist % “/Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Build/BatchFiles/Mac/Build.sh” \

FPMmoRpgTheMistEditor Mac Development

Setting up bundled DotNet SDK

/Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/DotNet/8.0.300/mac-arm64

Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll FPMmoRpgTheMistEditor Mac Development

Log file: /Users/ivory/Library/Application Support/Epic/UnrealBuildTool/Log.txt

Creating makefile for FPMmoRpgTheMistEditor (no existing makefile)

Couldn’t find target rules file for target ‘FPMmoRpgTheMistEditor’ in rules assembly ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’

Location: /Volumes/Seagate/UnrealEngine/UE_5.6/Engine/Intermediate/Build/BuildRules/UE5Rules.dll

Result: Failed (RulesError)

Total execution time: 78.26 seconds

and here the file structure of my source folder

ivory@Mac FPMmoRpgTheMist % ls -R “/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source”

FPMmoRpgTheMist FPMmoRpgTheMist.Target.cs FPMmoRpgTheMistEditor.Target.cs

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist:

FPMmoRpgTheMist.Build.cs FPMmoRpgTheMist.h Public

FPMmoRpgTheMist.cpp Private

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private:

Abilities Character Core Game Networking UI

AbilitySystem ClassSystem Equipment Input Player

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Abilities:

GameplayAbility.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/AbilitySystem:

RPGAbilitySystemComponent.cpp RPGAttributeSet.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Character:

RPGCharacterBase.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/ClassSystem:

RPGClassData.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Core:

UMistsGameInstance.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Equipment:

EquipmentProperties.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Game:

ARPGGameMode.cpp RPGGameModeBase.cpp RPGGameState.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Input:

UInputmappingContext.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Networking:

USBAuth.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/Player:

RPGPlayerController.cpp RPGPlayerState.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Private/UI:

ARPGHUD.cpp RPGHUDWidget.cpp

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public:

Abilities Character Core Game Networking UI

AbilitySystem ClassSystem Equipment Input Player

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Abilities:

GameplayAbility.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/AbilitySystem:

RPGAbilitySystemComponent.h RPGAttributeSet.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Character:

RPGCharacterBase.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/ClassSystem:

RPGClassData.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Core:

UMistsGameInstance.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Equipment:

EquipmentProperties.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Game:

ARPGGameMode.h RPGGameModeBase.h RPGGameState.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Input:

UInputmappingContext.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Networking:

USBAuth.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/Player:

RPGPlayerController.h RPGPlayerState.h

/Users/ivory/Documents/Unreal Projects/FPMmoRpgTheMist/Source/FPMmoRpgTheMist/Public/UI:

ARPGHUD.h RPGHUDWidget.h