Creating C++ Projects invokes Mono on OS X which fails to find .bash_profile

When I go to create a new project, and I choose to create a C++ project over Blueprint I get the following error from mono:

Failed to generate project files. Log output:

Running Mono…

Setting up Mono
/Users/Shared/UnrealEngine/4.7/Engine /Users/Shared/UnrealEngine/4.7/Engine/Binaries/Mac
UnrealBuildTool Exception: System.IO.FileNotFoundException: Could not find file "/Users/username/.bash_profile"
File name: '/Users/username/.bash_profile'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in <filename unknown>:0 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at System.IO.File.OpenText (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.File.ReadAllLines (System.String path) [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.AndroidPlatform.HasAnySDK () [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.AndroidPlatform.HasRequiredManualSDKInternal () [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.UEBuildPlatform.HasRequiredManualSDK () [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.UEBuildPlatform.ManageAndValidateSDK () [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.UEBuildPlatform.RegisterBuildPlatform () [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.UnrealBuildTool.RegisterAllUBTClasses (Boolean bSkipBuildPlatforms) [0x00000] in <filename unknown>:0 
  at UnrealBuildTool.UnrealBuildTool.Main (System.String[] Arguments) [0x00000] in <filename unknown>:0

(I’ve changed my username to “username” so you might see “/Users/username”)

I’m not sure how to get around this, or why it’s got such a dependency on .bash_profile, I use zsh, so I have a .zshrc instead - is this going to be a problem? Do I just need to create a dummy file? Is there some setting I’m missing that I should be using instead?

That’s very weird. We’ve had this bug very briefly, but that was before we released 4.7 and now we’re checking if .bash_profile exists before we try reading it. What version of the engine you’re using exactly?

Currently I’m using 4.7.2. I just installed it the engine Tuesday and then ran the update that was available yesterday for it before I started working with it.

OK, thanks. We’ll investigate this but in a meantime you should be able to work around this by creating an empty .bash_profile file in your home directory. Sorry for the trouble.

That sounds great! I got a blueprint working to start learning the interface. I wasn’t sure if the .bash_profile was actually needed for anything to work or not which is what least me to post this here.