Unity3d editor crash

when i export Xcode from unity3d,then unity3d editor crash,please help me.

roject/Temp/il2cppOutput/il2cppOutput" --builder=none
Platform assembly: /Applications/Unity/Unity.app/Contents/PlaybackEngines/iossupport/UnityEditor.iOS.Extensions.Xcode.dll (this message is harmless)
Unity(44357,0xa0f1a1d4) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
2015-06-17 22:19:39.151 Unity[44357:2739251] *** -[NSFileManager fileSystemRepresentationWithPath:]: unable to allocate memory for length (1099)
2015-06-17 22:19:39.157 Unity[44357:2739251] (
0 CoreFoundation 0x9c04bc63 __raiseError + 195
1 libobjc.A.dylib 0x95182a2a objc_exception_throw + 276
2 CoreFoundation 0x9c04bb7d +[NSException raise:format:] + 141
3 Foundation 0x92525e82 -[NSFileManager fileSystemRepresentationWithPath:] + 260
4 Foundation 0x92525d68 -[NSString(NSPathUtilities) fileSystemRepresentation] + 63
5 Foundation 0x9267503b -[NSFileManager _newReplicatePath:ref:atPath:ref:operation:fileMap:handler:] + 3580
6 Foundation 0x92675741 -[NSFileManager _replicatePath:atPath:operation:fileMap:handler:] + 552
7 Foundation 0x9267670b -[NSFileManager copyPath:toPath:handler:] + 239
8 Unity 0x016f466f Z19CopyFileOrDirectoryRKSsS0 + 223
9 Unity 0x00f9208a Z35FileUtil_CUSTOM_CopyFileOrDirectory11ICallStringS + 122
10 ??? 0x1fa927c8 0x0 + 531179464
11 ??? 0x46c1f488 0x0 + 1187116168
12 ??? 0x46c1faaa 0x0 + 1187117738
13 ??? 0x46c1eada 0x0 + 1187113690
14 ??? 0x3f006eb1 0x0 + 1056992945
15 ??? 0x3f00492a 0x0 + 1056983338
16 ??? 0x3f003e41 0x0 + 1056980545
17 ??? 0x3f004602 0x0 + 1056982530
18 libmono.0.dylib 0x047d8a0e mono_get_runtime_build_info + 3344
19 libmono.0.dylib 0x0490c4b7 mono_runtime_invoke + 133
20 Unity 0x0072e97a _Z28mono_runtime_invoke_profiledP10MonoMethodP10MonoObjectPPvPP13MonoExceptionP9MonoClass + 186
21 Unity 0x01474c01 _ZL8CallMonoPKcS0_PPv + 129
22 Unity 0x0147196f _ZL13DoBuildPlayerR16BuildPlayerSetup + 11023
23 Unity 0x0146e9ba _Z11BuildPlayerR16BuildPlayerSetup + 794
24 Unity 0x00f81edd _Z47BuildPipeline_CUSTOM_BuildPlayerInternalNoCheckP9MonoArray11ICallString19BuildTargetPlatform18BuildPlayerOptionshPj + 285
25 ??? 0x1fdd3db7 0x0 + 534592951
26 ??? 0x1fdd261b 0x0 + 534586907
27 ??? 0x1fdd1717 0x0 + 534583063
28 ??? 0x1fdd081b 0x0 + 534579227
29 ??? 0x1fdcc18e 0x0 + 534561166
30 ??? 0x1f00f4da 0x0 + 520156378
31 ??? 0x1aacacaf 0x0 + 447524015
32 libmono.0.dylib 0x047d8a0e mono_get_runtime_build_info + 3344
33 libmono.0.dylib 0x0490c4b7 mono_runtime_invoke + 133
34 libmono.0.dylib 0x04912b5b mono_runtime_invoke_array + 1002
35 libmono.0.dylib 0x048cb266 mono_register_jit_icall + 39921
36 ??? 0x1cdae6b0 0x0 + 484107952
37 ??? 0x1cdadeb5 0x0 + 484105909
38 ??? 0x1cdb5725 0x0 + 484136741
39 ??? 0x15af0043 0x0 + 363790403
40 ??? 0x15aeffa7 0x0 + 363790247
41 ??? 0x1f004db3 0x0 + 520113587
42 ??? 0x1aacacaf 0x0 + 447524015
43 libmono.0.dylib 0x047d8a0e mono_get_runtime_build_info + 3344
44 libmono.0.dylib 0x0490c4b7 mono_runtime_invoke + 133
45 Unity 0x0073041c _Z23scripting_method_invoke19ScriptingMethodMonoP10MonoObjectR18ScriptingArgumentsPP13MonoException + 60
46 Unity 0x0097a951 _ZN25ScriptingInvocationNoArgs6InvokeEPP13MonoException + 145
47 Unity 0x0095926c _ZN13MonoBehaviour5DoGUIENS_13GUILayoutTypeEi + 588
48 Unity 0x016cd0ef _ZN7GUIView12OnInputEventER10InputEvent + 639
49 Unity 0x016cda9a -[GUIOpenGLView mouseUp:] + 90
50 AppKit 0x920f9871 -[NSWindow _reallySendEvent:isDelayedEvent:] + 676
51 AppKit 0x919def9a -[NSWindow sendEvent:] + 526
52 AppKit 0x919db594 -[NSApplication sendEvent:] + 4765
53 Unity 0x016d86bf -[ForwardSendEvent sendEvent:] + 159
54 AppKit 0x918fb7dc -[NSApplication run] + 1003
55 AppKit 0x91870bc0 NSApplicationMain + 2082
56 Unity 0x016d8d1b _Z10EditorMainiPPKc + 1467
57 Unity 0x016d9498 main + 24
58 Unity 0x00002a95 start + 53
)
System memory in use before: 3.54 GB.
Unity(44357,0xa0f1a1d4) malloc: *** mach_vm_map(size=16781312) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
Unity(44357,0xa0f1a1d4) malloc: *** mach_vm_map(size=8392704) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
Unity(44357,0xa0f1a1d4) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
Receiving unhandled NULL exception
Launching bug reporter
Obtained 24 stack frames.
#0 0x0000000488de35 in array_push_back
#1 0x0000000488e649 in mono_unity_liveness_calculation_from_statics
#2 0x0000000488e283 in mono_unity_liveness_calculation_from_statics
#3 0x000000008626f8 in GarbageCollectSharedAssets(bool)
#4 0x000000014fc1a2 in EditorAssetGarbageCollectManager::GarbageCollectIfHighMemoryUsage()
#5 0x000000014d1771 in Application::TickTimer()
#6 0x000000016c3548 in -[EditorApplication TickTimer]
#7 0x0000009256b6cf in __NSFireTimer
#8 0x0000009bf91006 in CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
#9 0x0000009bf90ab4 in __CFRunLoopDoTimer
#10 0x0000009c00c54f in __CFRunLoopDoTimers
#11 0x0000009bf48531 in __CFRunLoopRun
#12 0x0000009bf47aa6 in CFRunLoopRunSpecific
#13 0x0000009bf4790b in CFRunLoopRunInMode
#14 0x00000094cb08f8 in RunCurrentEventLoopInMode
#15 0x00000094cb0503 in ReceiveNextEventCommon
#16 0x00000094cb042c in _BlockUntilNextEventMatchingListInModeWithFilter
#17 0x00000091907721 in _DPSNextEvent
#18 0x00000091906dc5 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
#19 0x000000918fb77c in -[NSApplication run]
#20 0x00000091870bc0 in NSApplicationMain
#21 0x000000016d8d1b in EditorMain(int, char const**)
#22 0x000000016d9498 in main
#23 0x00000000002a95 in start

*** Launching bug reporter due to crashbug.
Obtained 29 stack frames.
0 Unity 0x016bb651 _Z17LaunchBugReporter13BugReportMode + 1073
1 Unity 0x00964f35 _Z12HandleSignaliP9__siginfoPv + 53
2 libmono.0.dylib 0x0488c812 mono_chain_signal + 76
3 libmono.0.dylib 0x047d6ada mono_sigsegv_signal_handler + 234
4 libsystem_platform.dylib 0x9740603b _sigtramp + 43
5 ??? 0xffffffff 0x0 + 4294967295
6 libmono.0.dylib 0x0488e649 mono_unity_liveness_calculation_from_statics + 1482
7 libmono.0.dylib 0x0488e283 mono_unity_liveness_calculation_from_statics + 516
8 Unity 0x008626f8 _Z26GarbageCollectSharedAssetsb + 1144
9 Unity 0x014fc1a2 _ZN32EditorAssetGarbageCollectManager31GarbageCollectIfHighMemoryUsageEv + 50
10 Unity 0x014d1771 _ZN11Application9TickTimerEv + 2465
11 Unity 0x016c3548 -[EditorApplication TickTimer] + 24
12 Foundation 0x9256b6cf __NSFireTimer + 119
13 CoreFoundation 0x9bf91006 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 22
14 CoreFoundation 0x9bf90ab4 __CFRunLoopDoTimer + 1316
15 CoreFoundation 0x9c00c54f __CFRunLoopDoTimers + 351
16 CoreFoundation 0x9bf48531 __CFRunLoopRun + 2081
17 CoreFoundation 0x9bf47aa6 CFRunLoopRunSpecific + 390
18 CoreFoundation 0x9bf4790b CFRunLoopRunInMode + 123
19 HIToolbox 0x94cb08f8 RunCurrentEventLoopInMode + 262
20 HIToolbox 0x94cb0503 ReceiveNextEventCommon + 192
21 HIToolbox 0x94cb042c _BlockUntilNextEventMatchingListInModeWithFilter + 99
22 AppKit 0x91907721 _DPSNextEvent + 742
23 AppKit 0x91906dc5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 350
24 AppKit 0x918fb77c -[NSApplication run] + 907
25 AppKit 0x91870bc0 NSApplicationMain + 2082
26 Unity 0x016d8d1b _Z10EditorMainiPPKc + 1467
27 Unity 0x016d9498 main + 24
28 Unity 0x00002a95 start + 53
Stacktrace:

Native stacktrace:

0 libsystem_kernel.dylib 0x9326769a __pthread_kill + 10
1 libsystem_c.dylib 0x9a348eee abort + 156
2 Unity 0x016bb6a5 _Z17LaunchBugReporter13BugReportMode + 1157
3 Unity 0x00964f35 _Z12HandleSignaliP9__siginfoPv + 53
4 libmono.0.dylib 0x0488c812 mono_chain_signal + 76
5 libmono.0.dylib 0x047d6ada mono_sigsegv_signal_handler + 234
6 libsystem_platform.dylib 0x9740603b _sigtramp + 43
7 ??? 0xffffffff 0x0 + 4294967295
8 libmono.0.dylib 0x0488e649 mono_unity_liveness_calculation_from_statics + 1482
9 libmono.0.dylib 0x0488e283 mono_unity_liveness_calculation_from_statics + 516
10 Unity 0x008626f8 _Z26GarbageCollectSharedAssetsb + 1144
11 Unity 0x014fc1a2 _ZN32EditorAssetGarbageCollectManager31GarbageCollectIfHighMemoryUsageEv + 50
12 Unity 0x014d1771 _ZN11Application9TickTimerEv + 2465
13 Unity 0x016c3548 -[EditorApplication TickTimer] + 24
14 Foundation 0x9256b6cf __NSFireTimer + 119
15 CoreFoundation 0x9bf91006 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 22
16 CoreFoundation 0x9bf90ab4 __CFRunLoopDoTimer + 1316
17 CoreFoundation 0x9c00c54f __CFRunLoopDoTimers + 351
18 CoreFoundation 0x9bf48531 __CFRunLoopRun + 2081
19 CoreFoundation 0x9bf47aa6 CFRunLoopRunSpecific + 390
20 CoreFoundation 0x9bf4790b CFRunLoopRunInMode + 123
21 HIToolbox 0x94cb08f8 RunCurrentEventLoopInMode + 262
22 HIToolbox 0x94cb0503 ReceiveNextEventCommon + 192
23 HIToolbox 0x94cb042c _BlockUntilNextEventMatchingListInModeWithFilter + 99
24 AppKit 0x91907721 _DPSNextEvent + 742
25 AppKit 0x91906dc5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 350
26 AppKit 0x918fb77c -[NSApplication run] + 907
27 AppKit 0x91870bc0 NSApplicationMain + 2082
28 Unity 0x016d8d1b _Z10EditorMainiPPKc + 1467
29 Unity 0x016d9498 main + 24
30 Unity 0x00002a95 start + 53

Debug info from gdb:

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

objc[44357]: task_thread failed (result 268435459)

2015-06-17 22:19:39.151 Unity[44357:2739251] *** -[NSFileManager fileSystemRepresentationWithPath:]: unable to allocate memory for length (1099)

I am no expert but I think this means your app is completely out of memory. Is there a trivial way you can reduce the size of the app, perhaps downsizing all textures to 64x64. (Assuming your app uses lots of textures.) Maybe use the profiler which will tell you more about memory usage, or Instruments.

the mac have 16`GB mem

Yeah, and Mac OS usually does a huge amount of memory related work, moving application data from memory into file storage and back again. If the Mac runs out of space, then an app will be terminated. As I said, I am no expert, but suggested a test to see if you can make a build that uses less memory. (Or do some OS X tricks to watch memory usage. Activity Monitor on my machine tells me I have 16GB of memory, and 7.76GB of memory used, and 5GB in a cache. Maybe if you have Activity Monitor running as you make a build you’ll be able to see what’s happening.)