Whenever I try to create a C++ Class the compiling always fail

So whenever I try to add a Character C++ Class the recompiling always fail and whenever I try to compile, it is also failing. The log is posted below. At first I am using the latest version of Xcode then i downgraded it to XCode 9.0 and my UE is v4.19.2

Running Mono…

Setting up Mono
/Users/Shared/Epic Games/UE_4.19/Engine /Users/Shared/Epic Games/UE_4.19/Engine/Binaries/Mac
Performing full C++ include scan (hot reloading a new target)
Creating makefile for hot reloading ShooterGame3 (no existing makefile)
ERROR: Couldn’t find target rules file for target ‘ShooterGame3’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Location: /Users/Shared/Epic Games/UE_4.19/Engine/Intermediate/Build/BuildRules/UE4Rules.dll
Target rules found:
UE4Editor - /Users/Shared/Epic Games/UE_4.19/Engine/Source/UE4Editor.Target.cs
UE4Game - /Users/Shared/Epic Games/UE_4.19/Engine/Source/UE4Game.Target.cs
UnrealHeaderTool - /Users/Shared/Epic Games/UE_4.19/Engine/Source/Programs/UnrealHeaderTool/UnrealHeaderTool.Target.cs

there something wrong with your build script *.Target.cs. See if it exist see if it does not have any errors.

As Shadowriver said there something wrong with your build script. You can create new project and see if it’s different or just copy paste and change name to your project name. (I mean YourProjectName.Target.cs in your project directory inside source directory.)