为IOS错误编译Unity3d

时间:2014-10-28 06:27:25

标签: ios unity3d mono

我用单声道。为Android编译效果很好。但是对于IOS会返回错误。完整错误文字:

  

交叉编译作业Assembly-CSharp.dll失败。   UnityEngine.UnityException:AOT交叉编译器失败:   /Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Tools/OSX/mono-xcompiler   --aot = full,asmonly,nodebug,static,outfile =“Assembly-CSharp.dll.s”“Assembly-CSharp.dll”当前目录:   /用户/ hexgrim /文档/ BottleRepository / Bottle_Unity_IPad /温度/ StagingArea /数据/管理   环境:Apple_PubSub_Socket_Render ='/ tmp / launch-CZPXth / Render'LOGNAME   ='hexgrim'   __CHECKFIX1436934 ='1'MONO_PATH ='/ Users / hexgrim / Documents / BottleRepository / Bottle_Unity_IPad / Temp / StagingArea / Data / Managed'   TMPDIR ='/ var / folders / fw / 3hkfvy7j49xgk_tfq7kxx3ym0000gn / T /'PWD =   '/ Users / hexgrim / Documents / BottleRepository / Bottle_Unity'SSH_AUTH_SOCK   ='/ tmp / launch-okPdG6 /听众'   _ ='/ Applications /Unity/Unity.app/Contents/MacOS/Unity'GC_DONT_GC ='yes please'   __CF_USER_TEXT_ENCODING ='0x1F5:0:0'SHELL ='/ bin / bash'GAC_PATH ='/ Users / hexgrim / Documents / BottleRepository / Bottle_Unity_IPad / Temp / StagingArea / Data / Managed'   USER ='hexgrim'HOME ='/ Users / hexgrim'PATH =   '/ usr / bin:/ bin:/ usr / sbin:/ sbin'SHLVL ='2'结果文件存在:   假。超时:虚假标准:Mono Ahead of Time编译器 -   编译程序集   /Users/hexgrim/Documents/BottleRepository/Bottle_Unity_IPad/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll*   断言在mini-arm.c:4771,条件`cfg-> code_len<   cfg-> code_size'不符合stderr:

     

在UnityEditor.MonoProcessUtility.RunMonoProcess   (System.Diagnostics.Process进程,System.String名称,System.String   得到的文件)[0x00000] in:0 at   UnityEditor.MonoCrossCompile.CrossCompileAOT(BuildTarget目标,   System.String crossCompilerAbsolutePath,System.String   assembliesAbsoluteDirectory,CrossCompileOptions crossCompileOptions,   System.String输入,System.String输出,System.String   additionalOptions)[0x00000] in:0 at   UnityEditor.MonoCrossCompile + JobCompileAOT.ThreadPoolCallback   (System.Object threadContext)[0x00000] in:0   UnityEditor.HostView:OnGUI()

1 个答案:

答案 0 :(得分:-1)

一个.cs文件中存在错误。只需逐个禁用文件并尝试编译。