Unable to create new project in UE 4.9

I am on OSX 10.11 and XCode 7.0.1. I downloaded the UE4.9 source code. It compiles fine. When I try to create a new C++ project, it crashes with the following text in the message window. I also updated to the most recent Mono version. Any one know what I am missing?

An error occurred while trying to generate project files.


Running Mono...

ln: lib/mono/4.5/System.Reactive.Core.dll: File exists
ln: lib/mono/4.5/System.Reactive.Debugger.dll: File exists
ln: lib/mono/4.5/System.Reactive.Experimental.dll: File exists
ln: lib/mono/4.5/System.Reactive.Linq.dll: File exists
ln: lib/mono/4.5/System.Reactive.PlatformServices.dll: File exists
ln: lib/mono/4.5/System.Reactive.Providers.dll: File exists
ln: lib/mono/4.5/System.Reactive.Runtime.Remoting.dll: File exists
ln: lib/mono/4.5/System.Windows.Forms.DataVisualization.dll: File exists
Setting up Mono
~/Tools/UnrealEngine/Engine ~/Tools/UnrealEngine/Engine/Binaries/Mac
Stacktrace:


Native stacktrace:


Debug info from gdb:

(lldb) command source -s 0 '/tmp/mono-gdb-commands.z2a85D'
Executing commands in '/tmp/mono-gdb-commands.z2a85D'.
(lldb) process attach --pid 8482
Process 8482 stopped
* thread #1: tid = 0xa83cd, 0x00007fff8aeee72a libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
    frame #0: 0x00007fff8aeee72a libsystem_kernel.dylib`__wait4 + 10
libsystem_kernel.dylib`__wait4:
->  0x7fff8aeee72a <+10>: jae    0x7fff8aeee734            ; <+20>
    0x7fff8aeee72c <+12>: movq   %rax, %rdi
    0x7fff8aeee72f <+15>: jmp    0x7fff8aee9414            ; cerror
    0x7fff8aeee734 <+20>: retq   

Executable module set to "/Users/anshul/Tools/UnrealEngine/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/Mono/Mac/bin/mono".
Architecture set to: x86_64h-apple-macosx.
(lldb) thread list
Process 8482 stopped
* thread #1: tid = 0xa83cd, 0x00007fff8aeee72a libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  thread #2: tid = 0xa83d0, 0x00007fff8aee8cd2 libsystem_kernel.dylib`semaphore_wait_trap + 10
  thread #3: tid = 0xa83d1, 0x00007fff8aeee78a libsystem_kernel.dylib`__workq_kernreturn + 10
  thread #4: tid = 0xa83d2, 0x00007fff8aeef0a2 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
(lldb) thread backtrace all
* thread #1: tid = 0xa83cd, 0x00007fff8aeee72a libsystem_kernel.dylib`__wait4 + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP
  * frame #0: 0x00007fff8aeee72a libsystem_kernel.dylib`__wait4 + 10
    frame #1: 0x000000010011a5d2 mono`mono_handle_native_sigsegv + 626
    frame #2: 0x00000001001ddfbd mono`mono_arch_handle_altstack_exception + 125
    frame #3: 0x00000001000121a4 mono`mono_sigsegv_signal_handler + 788
    frame #4: 0x00007fff8c0d852a libsystem_platform.dylib`_sigtramp + 26

  thread #2: tid = 0xa83d0, 0x00007fff8aee8cd2 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #0: 0x00007fff8aee8cd2 libsystem_kernel.dylib`semaphore_wait_trap + 10
    frame #1: 0x000000010038277a mono`mono_sem_wait + 26
    frame #2: 0x00000001003088f4 mono`finalizer_thread + 196
    frame #3: 0x00000001002d50e4 mono`start_wrapper_internal + 740
    frame #4: 0x00000001002d4df1 mono`start_wrapper + 33
    frame #5: 0x000000010038a551 mono`inner_start_thread + 577
    frame #6: 0x00000001003a6d6e mono`GC_start_routine + 110
    frame #7: 0x000000010063b815 libsystem_pthread.dylib`_pthread_body + 131
    frame #8: 0x000000010063b792 libsystem_pthread.dylib`_pthread_start + 168
    frame #9: 0x0000000100638fad libsystem_pthread.dylib`thread_start + 13

  thread #3: tid = 0xa83d1, 0x00007fff8aeee78a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #0: 0x00007fff8aeee78a libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x000000010063b3e0 libsystem_pthread.dylib`_pthread_wqthread + 1283
    frame #2: 0x0000000100638f9d libsystem_pthread.dylib`start_wqthread + 13

  thread #4: tid = 0xa83d2, 0x00007fff8aeef0a2 libsystem_kernel.dylib`kevent_qos + 10, queue = 'com.apple.libdispatch-manager'
    frame #0: 0x00007fff8aeef0a2 libsystem_kernel.dylib`kevent_qos + 10
    frame #1: 0x00000001005dfae3 libdispatch.dylib`_dispatch_mgr_invoke + 216
    frame #2: 0x00000001005df66f libdispatch.dylib`_dispatch_mgr_thread + 52
(lldb) detach

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Process 8482 detached
(lldb) quit
/Users/anshul/Tools/UnrealEngine/Engine/Build/BatchFiles/Mac/RunMono.sh: line 23:  8482 Abort trap: 6           mono "$@"

Did you ever get this fixed?

I’m having the same problem also trying to create a C++ project.

Fresh install of OSX 10.11.2, updated from 10.11.1, Xcode 7.1.1 and Unreal Engine 4.10 release

It is annoying because like with you, the StackTrace is empty, making hard to understand what went on…

I had the same problem with OSX 10.11.2, Xcode 7.1.1 and Unreal Engine 4.10 release.

After searching around, it seemed that the problem was creating the project with the Editor started from Xcode: http://mono.1490590.n4.nabble.com/App-crashes-at-mono-jit-exec-when-launched-from-Xcode-td4666666.html

Starting Engine/Binaries/Mac/UE4Editor.app from finder enabled me to create a project like before.

If this worked for you as well, please accept the answer.

I was stuck where none of the C++ Templates would ever compile. I got messages pointing to target.cs missing starting when it tried to run Mono. It asked if I wanted to have XCode compile it. Obviously … Fine. But XCode then failed saying it could not find UE4Editor-[NAME OF PROJECT]t.dylib

Alexandre Pretyman’s solution
,"Starting Engine/Binaries/Mac/UE4Editor.app from finder enabled me to create a project like before.

If this worked for you as well, please accept the answer."

Fixed the internal issue and now C++ Templates open as they should.

ORIGINAL CRASH FROM EDITOR MESSAGE …BELOW…
…(note it had the same message with 4.14)…

Running Mono… Setting up Mono /Users/Shared/Epic Games/UE_4.15/Engine /Users/Shared/Epic Games/UE_4.15/Engine/Binaries/Mac ERROR: Couldn’t find target rules file for target ‘-project=/Users/weberdm311/Desktop/ios/testc++/test/test.uproject’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. Location: /Users/Shared/Epic Games/UE_4.15/Engine/Intermediate/Build/BuildRules/UE4Rules.dll Target rules found: UE4Editor - /Users/Shared/Epic Games/UE_4.15/Engine/Source/UE4Editor.Target.cs UE4Game - /Users/Shared/Epic Games/UE_4.15/Engine/Source/UE4Game.Target.cs UnrealHeaderTool - /Users/Shared/Epic Games/UE_4.15/Engine/Source/Programs/UnrealHeaderTool/UnrealHeaderTool.Target.cs

Target rules found: UE4Editor - /Users/Shared/Epic Games/UE_4.15/Engine/Source/UE4Editor.Target.cs UE4Game - /Users/Shared/Epic Games/UE_4.15/Engine/Source/UE4Game.Target.cs UnrealHeaderTool - /Users/Shared/Epic Games/UE_4.15/Engine/Source/Programs/UnrealHeaderTool/UnrealHeaderTool.Target.cs