# iphone crosss compile assertion failed.

**URL:** https://discussions.unity.com/t/iphone-crosss-compile-assertion-failed/69203
**Category:** Questions & Answers
**Created:** [April 22, 2013, 9:59am UTC](https://discussions.unity.com/t/iphone-crosss-compile-assertion-failed/69203 "2013-04-22T09:59:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kandoh](https://avatars.discourse-cdn.com/v4/letter/k/8797f3/32.png) [@kandoh](https://discussions.unity.com/u/kandoh)
#### Post date: [April 22, 2013, 9:59am UTC](https://discussions.unity.com/t/iphone-crosss-compile-assertion-failed/69203/1 "2013-04-22T09:59:02Z")

</div>

Hello,

I’m trying to compila a project to iOS in unty 4.1.2, and getting following error.  
Anyone know what is happened?, or how to fix this?

```
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 : /Users/use0116/Documents/workspace/ps0070/Temp/StagingArea/Data/Managed
 result file exists: True
stdout: Mono Ahead of Time compiler - compiling assembly /Users/use0116/Documents/workspace/ps0070/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll* Assertion at aot-compiler.c:5051, condition `table_size < 65000' 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.HostView:OnGUI()

```

---

<div class="post-metadata">

### Author: ![proandrius](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@proandrius](https://discussions.unity.com/u/proandrius)
#### Post date: [April 22, 2013, 10:19am UTC](https://discussions.unity.com/t/iphone-crosss-compile-assertion-failed/69203/2 "2013-04-22T10:19:36Z")

</div>

Try killing Xcode and building project to another folder.
