Build does nothing!

Hi,
I’m using Unity 4.0b11 and Xcode 4.5.1, when I click “Build” or “Build and Run” in Unity the progress bar completes but then nothing happens at all… No files are created, no errors output, nothing…

Does anyone has any idea what might be happening?

Thanks in advance!

Anyone?

Did you find a solution yet? I don’t know what would be causing the problem but these kind of issues drive me nuts!

Have you opened Xcode to make sure it hasn’t still built the project and not opened it up automatically?

No, unfortunately I’m still getting the same problem… I’m considering going back to Unity 3.5 since I’m using the 4 Beta.

Opening XCode doesn’t make sense because the project folder is not even created…

Bump!! Anyone?!

What’s in your Editor log?

I just noticed I got this message on the console this time (I don’t think it was there before):

Cross compilation job Assembly-CSharp.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll"  current dir : /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed
 result file exists: False
stdout: Mono Ahead of Time compiler - compiling assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/Assembly-CSharp.dllThe following assembly referenced from /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll could not be loaded:     Assembly:   Vectrosity    (assemblyref_index=4)     Version:    1.0.4646.29153     Public Key: (none)The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/).Could not load file or assembly 'Vectrosity, Version=1.0.4646.29153, Culture=neutral, PublicKeyToken=null' or one of its dependencies.The class DragAndDrawPath could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullCould not load file or assembly 'Vectrosity, Version=1.0.4646.29153, Culture=neutral, PublicKeyToken=null' or one of its dependencies.The class PlayerGoToTarget could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullThe class PlayerMain could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e* Assertion at method-to-ir.c:7980, condition `costs > 0' not met
stderr: 

  at UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) [0x00000] in <filename unknown>:0 
  at UnityEditor.MonoCrossCompile.CrossCompileAOT (BuildTarget target, System.String crossCompilerAbsolutePath, System.String assembliesAbsoluteDirectory, CrossCompileOptions crossCompileOptions, System.String input, System.String output, System.String additionalOptions) [0x00000] in <filename unknown>:0 
  at UnityEditor.MonoCrossCompile+JobCompileAOT.ThreadPoolCallback (System.Object threadContext) [0x00000] in <filename unknown>:0 
UnityEditor.MonoCrossCompile:CrossCompileAOTDirectoryParallel(BuildTarget, CrossCompileOptions, String, String, String)
PostProcessiPhonePlayer:PostProcess(BuildTarget, String, String, String, String, String, String, String, BuildOptions, RuntimeClassRegistry)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

It says something wrong is with Vectrosity assembly. Maybe plugin was not installed properly or your version does not support Unity 4.0.

It seems you’re right Mantas! There seems to be an issue with Vectrosity from what I’m reading on it’s thread.

Thanks for the tip!

Refresh: detecting if any assets need to be imported or removed … Refresh: elapses 0.021398 seconds

----- Total AssetImport time: 0.017804s, AssetImport time: 0.000000s, Asset hashing: 0.000000s [0 B, 0.000000 mb/s]

2015-11-12 11:55:09.512 Unity[6225:225698] -[NSURL length]: unrecognized selector sent to instance 0x246432a0
2015-11-12 11:55:09.514 Unity[6225:225698] -[NSURL length]: unrecognized selector sent to instance 0x246432a0
2015-11-12 11:55:09.520 Unity[6225:225698] (
0 CoreFoundation 0x9693dc19 __raiseError + 201
1 libobjc.A.dylib 0x905eff11 objc_exception_throw + 276
2 CoreFoundation 0x969416c3 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x9683331c forwarding + 1020
4 CoreFoundation 0x96832efe _CF_forwarding_prep_0 + 14
5 Foundation 0x9760cfc1 -[NSFileManager fileExistsAtPath:] + 56
6 Unity 0x016ca3b9 -[AppendSavePanel _overwriteExistingFileCheck:] + 57
7 AppKit 0x9ac600e5 -[NSSavePanel _okForSaveMode] + 372
8 AppKit 0x9ac60fe1 -[NSSavePanel ok:] + 322
9 libobjc.A.dylib 0x905e99e4 -[NSObject performSelector:withObject:] + 70
10 AppKit 0x9a7cf556 __36-[NSApplication sendAction:to:from:]_block_invoke + 51
11 libsystem_trace.dylib 0x955063c9 _os_activity_initiate + 85
12 AppKit 0x9a7cf477 -[NSApplication sendAction:to:from:] + 610
13 AppKit 0x9a7e2e69 -[NSControl sendAction:to:] + 102
14 AppKit 0x9a7e2d5d __26-[NSCell _sendActionFrom:]_block_invoke + 176
15 libsystem_trace.dylib 0x955063c9 _os_activity_initiate + 85
16 AppKit 0x9a7e2c8c -[NSCell _sendActionFrom:] + 161
17 AppKit 0x9aa3f08d __48-[NSCell trackMouse:inRect:ofView:untilMouseUp:]_block_invoke1010 + 43
18 libsystem_trace.dylib 0x955063c9 _os_activity_initiate + 85
19 AppKit 0x9a7e1039 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2744
20 AppKit 0x9a82d64b -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 809
21 AppKit 0x9a7df668 -[NSControl mouseDown:] + 693
22 AppKit 0x9adccbff -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6266
23 AppKit 0x9adce406 -[NSWindow _reallySendEvent:isDelayedEvent:] + 2303
24 AppKit 0x9a76b71f -[NSWindow sendEvent:] + 567
25 AppKit 0x9a6e6bf2 -[NSApplication sendEvent:] + 2919
26 Unity 0x016d915f -[ForwardSendEvent sendEvent:] + 159
27 AppKit 0x9a7d6564 -[NSApplication _modalSession:sendEvent:] + 1296
28 AppKit 0x9a7d5fb2 -[NSApplication _realDoModalLoop:peek:] + 854
29 AppKit 0x9a7d5c54 -[NSApplication _doModalLoop:peek:] + 207
30 AppKit 0x9a7d34f8 -[NSApplication runModalForWindow:] + 324
31 AppKit 0x9ac5ebc1 -[NSSavePanel runModal] + 873
32 AppKit 0x9ac5d288 -[NSSavePanel runModalForDirectory:file:types:] + 301
33 AppKit 0x9ac5e7e2 -[NSSavePanel runModalForDirectory:file:] + 56
34 Unity 0x016ca004 Z29RuniPhoneReplaceOrAppendPanelRKSsS0_S0 + 212
35 Unity 0x0150599e Z17RunSaveBuildPanel19BuildTargetPlatformRKSsS1_S1_S1 + 46
36 Unity 0x00fe1f0b Z35EditorUtility_CUSTOM_SaveBuildPanel19BuildTargetPlatform11ICallStringS0_S0_S0 + 155
37 ??? 0x10cb0c84 0x0 + 281742468
38 ??? 0x10cb00fe 0x0 + 281739518
39 ??? 0x10caf5d8 0x0 + 281736664
40 ??? 0x10caee6f 0x0 + 281734767
41 ??? 0x10cae3cc 0x0 + 281732044
42 ??? 0x10cab3d6 0x0 + 281719766
43 ??? 0x243f3182 0x0 + 608121218
44 ??? 0x1576b64f 0x0 + 360101455
45 libmono.0.dylib 0x047ef62a mono_get_runtime_build_info + 3344
46 libmono.0.dylib 0x049233a3 mono_runtime_invoke + 133
47 libmono.0.dylib 0x04929a47 mono_runtime_invoke_array + 1002
48 libmono.0.dylib 0x048e204e mono_register_jit_icall + 39921
49 ??? 0x152f4d58 0x0 + 355421528
50 ??? 0x152f3bb5 0x0 + 355417013
51 ??? 0x157e99ed 0x0 + 360618477
52 ??? 0x1127a873 0x0 + 287811699
53 ??? 0x1127a7d7 0x0 + 287811543
54 ??? 0x1f613b83 0x0 + 526465923
55 ??? 0x1576b64f 0x0 + 360101455
56 libmono.0.dylib 0x047ef62a mono_get_runtime_build_info + 3344
57 libmono.0.dylib 0x049233a3 mono_runtime_invoke + 133
58 Unity 0x007307cc _Z23scripting_method_invoke19ScriptingMethodMonoP10MonoObjectR18ScriptingArgumentsPP13MonoException + 60
59 Unity 0x0097afe1 _ZN25ScriptingInvocationNoArgs6InvokeEPP13MonoException + 145
60 Unity 0x009598fc _ZN13MonoBehaviour5DoGUIENS_13GUILayoutTypeEi + 588
61 Unity 0x016cdbaf _ZN7GUIView12OnInputEventER10InputEvent + 639
62 Unity 0x016ce55a -[GUIOpenGLView mouseUp:] + 90
63 AppKit 0x9adcce4c -[NSWindow _handleMouseUpEvent:isDelayedEvent:] + 106
64 AppKit 0x9adce406 -[NSWindow _reallySendEvent:isDelayedEvent:] + 2303
65 AppKit 0x9a76b71f -[NSWindow sendEvent:] + 567
66 AppKit 0x9a6e6bf2 -[NSApplication sendEvent:] + 2919
67 Unity 0x016d915f -[ForwardSendEvent sendEvent:] + 159
68 AppKit 0x9a53a07b -[NSApplication run] + 1159
69 AppKit 0x9a5006a4 NSApplicationMain + 1630
70 Unity 0x016d97bb _Z10EditorMainiPPKc + 1467
71 Unity 0x016d9f38 main + 24
72 Unity 0x000029f5 start + 53
73 ??? 0x00000001 0x0 + 1
)

what is this? Unity does nothing at ALL when i press build button (iOS build)

I guess you are on OS X El Capitan and using older Unity version. You should upgrade to latest Unity 4.6.x or Unity 5.2.x to get this issue fixed.

thanks Mantas.
actually, I should upgrade to 4.6.9, because it was Unity 4.6.8

for developers,
Unity 4.6.8 is not working well in El Capitan
upgrade it to Unity 4.6.9 immediately (or Unity 5) if you are using OSX El Capitan

Unity 4.5.3f3 on EL Capitan has no chance of working then? :frowning:

Yes, there’s no work-around.