Mac Builds of Type = TargetType.Program Fail

I have been using the Version of the client from the Epic Games Launcher to work on my game from MAC. However, builds that are set to TargetType.Program Don’t compile.

Showing All Errors Only
ExternalBuildToolExecution ConsoleHelper_Build
    cd /Users/Shared/UnrealEngine/4.13
     {Export Snipped}
    /Users/Shared/UnrealEngine/4.13/Engine/Build/BatchFiles/Mac/Build.sh ConsoleHelper macosx Development

Building ConsoleHelper...
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe ConsoleHelper Mac Development
ERROR: Couldn't find target rules file for target 'ConsoleHelper' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Location: /Users/Shared/UnrealEngine/4.13/Engine/Intermediate/Build/BuildRules/UE4Rules.dll
Target rules found:
	UE4Editor - /Users/Shared/UnrealEngine/4.13/Engine/Source/UE4Editor.Target.cs
	UE4Game - /Users/Shared/UnrealEngine/4.13/Engine/Source/UE4Game.Target.cs
	UnrealHeaderTool - /Users/Shared/UnrealEngine/4.13/Engine/Source/Programs/UnrealHeaderTool/UnrealHeaderTool.Target.cs

Command /Users/Shared/UnrealEngine/4.13/Engine/Build/BatchFiles/Mac/Build.sh failed with exit code 5

digging around it appears the project generator does not add the uproject file location to the build string for this TargetType.Program.

Adding that in allows it to Compile but Linking Fails.

Showing All Errors Only
clang: error: no such file or directory: '/Users//Documents/Unreal Projects/SF/Binaries/Mac/ConsoleHelper-AppFramework.a'
ect...

Expected result:
Successful build.

I am going to try building it directly against the github source to see if that fixes the problem.

building against the GitHub source seems to work fine. However, xcode things the project is an .app but it really creates a binary.

Hey Akuseru,

This appears to be an issue with the folder structure and location where your UE4 is installed. You can see a solution here:

https://answers.unrealengine.com/questions/13614/couldnt-find-target-rules-file-for-target-myprojec.html

Thank you for submitting a bug report, however at this time we believe that the issue you are describing is not actually a bug with the Unreal Engine, and so we are not able to take any further action on this. If you still believe this may be a bug, please provide steps for us to reproduce the issue, and we will continue our investigation.

Ok, so shouldn’t the engine recommend putting c++ projects into /user/shared/UnrealEngine/4.13/ instead of ~/Documents/UnrealProjects/? Seems to me like there is an issue somewhere if there are build problems from the recommended project directory.

Thanks!