【问题标题】:Error with Unity iOS compile: Cross Compilation job Mono.WebBrowser.dll failedUnity iOS 编译出错:交叉编译作业 Mono.WebBrowser.dll 失败
【发布时间】:2014-06-17 15:04:27
【问题描述】:

一直在开发一个用于 iOS 部署的项目。直到最近,我们一直在通过 webplayer 构建和部署到我们的客户端。但是,我现在正试图转向在 iOS 上发布构建。但是,无论我尝试什么,当我去编译项目时,我都会收到以下错误消息:

Cross compilation job Mono.WebBrowser.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity_45/Unity.app/Contents/PlaybackEngines/iOSSupport/Tools/OSX/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Mono.WebBrowser.dll.s" "Mono.WebBrowser.dll"  current dir : /Users/admin/Desktop/UI_gg_current/Temp/StagingArea/Data/Managed
 Env: Apple_PubSub_Socket_Render = '/tmp/launch-7SV8Ex/Render'
LOGNAME = 'admin'
PATH = '/usr/bin:/bin:/usr/sbin:/sbin'
TMPDIR = '/var/folders/7c/s32nkpmx0yvgw4mmw_5vhxx40000gn/T/'
MONO_PATH = '/Users/admin/Desktop/UI_gg_current/Temp/StagingArea/Data/Managed'
SSH_AUTH_SOCK = '/tmp/launch-wpdtRI/Listeners'
USER = 'admin'
GC_DONT_GC = 'yes please'
Apple_Ubiquity_Message = '/tmp/launch-cfnoHv/Apple_Ubiquity_Message'
SHELL = '/bin/bash'
__CF_USER_TEXT_ENCODING = '0x1F5:0:0'
GAC_PATH = '/Users/admin/Desktop/UI_gg_current/Temp/StagingArea/Data/Managed'
HOME = '/Users/admin'
COMMAND_MODE = 'unix2003'
 result file exists: False. Timed out: False
stdout: 
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()

和

Error building Player: UnityException: Cross compilation failed.

我正在使用 Unity 4.5。迄今为止,我已经:删除了第三方 dll(包括 xml.linq.dll),删除了 Lambda 搜索运算符(=>)的任何实例,并删除了临时文件夹,因为我已经看到在类似情况下使用了这些方法(我知道某些方面iOS 交叉编译不支持 Linq 的)。

我看过类似的问题,例如:http://answers.unity3d.com/questions/439367/cross-compilation-failed-csharpdll.html。但是,我很困惑,因为它不是导致我的问题的 CSharp 程序集(这意味着它不是我的脚本之一?)我不确定为什么它甚至会包含用于 iOS 构建的 WebBrowser.dll。非常感谢任何帮助,因为我觉得我已经四处寻找没有运气的解决方案。

【问题讨论】:

    标签: c# ios compilation compiler-errors unity3d


    【解决方案1】:

    查看此问题的解决方案here。

    【讨论】:

      猜你喜欢
      • 2018-08-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-03-14
      • 2021-04-12
      • 2015-06-11
      • 2017-06-06
      相关资源
      最近更新 更多