简体   繁体   English

Unity iOS编译错误:交叉编译作业Mono.WebBrowser.dll失败

[英]Error with Unity iOS compile: Cross Compilation job Mono.WebBrowser.dll failed

have been working on a project intended for iOS deployment. 一直在致力于iOS部署的项目中。 Until recently, we have been building and deploying to our client via webplayer. 直到最近,我们一直在通过网络播放器构建和部署到我们的客户端。 However, I am now attempting to shift to releasing builds on iOS . 但是,我现在正尝试转向在iOS上发布构建。 But, no matter what I try, when I go to compile the project I receive the following error messages: 但是,无论我尝试什么,当我去编译项目时,都会收到以下错误消息:

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()

and

Error building Player: UnityException: Cross compilation failed.

I am using Unity 4.5. 我正在使用Unity 4.5。 To date I have : deleted third party dlls (including xml.linq.dll) , removed any instance of Lambda search operators (=>), and deleted the temp folder because I have seen these approaches used in similar situations (I know some aspects of Linq are not supported in iOS cross compile). 到目前为止,我已经:删除了第三方dll(包括xml.linq.dll),删除了Lambda搜索运算符的任何实例(=>),并删除了temp文件夹,因为我已经看到这些方法在类似的情况下使用(我知道某些方面) iOS交叉编译不支持Linq的代码)。

I have looked at similar issues such as this one: http://answers.unity3d.com/questions/439367/cross-compilation-failed-csharpdll.html . 我已经看过类似的问题: http : //answers.unity3d.com/questions/439367/cross-compilation-failed-csharpdll.html But, I am so perplexed, because it isn't the CSharp assembly causing my problem (which means it isn't one of my scripts?) I am not sure why it would even be including a WebBrowser.dll for an iOS build. 但是,我很困惑,因为它不是导致问题的CSharp程序集(这不是我的脚本之一吗?),我不确定为什么它甚至会为iOS版本包括WebBrowser.dll。 Any help is greatly appreciated, as I feel I have searched far and wide for a resolution with no luck. 非常感谢您的帮助,因为我觉得我已经四处寻找没有运气的解决方案。

这里查看该问题的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM