- Home /
AOL cross compilation error "intPtr[] can't be marshalled as LPArray"
Hello, im currently trying to build a project originally targeted to Android/Win for IOS. im getting a error with AOC that i cannot find much documentation on.
this is the error:
stdout: Mono Ahead of Time compiler - compiling assembly /Users/ksdev/Documents/SpaceDemo-master/Temp/StagingArea/Data/Managed/Assembly-CSharp.dllStructure field of type IntPtr[] can't be marshalled as LPArray stderr:
Unity error read out:
Cross compilation job Assembly-CSharp.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Tools/OSX/mono-xcompiler -- aot=full,asmonly,nodebug,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll" current dir : /Users/ksdev/Documents/SpaceDemo-master/Temp/StagingArea/Data/Managed Env: Apple_PubSub_Socket_Render = '/tmp/launch-GRgsWk/Render'
LOGNAME = 'ksdev'
TMPDIR = '/var/folders/jq/3xhj630550q3r8fdldf_c5_c0000gn/T/'
MONO_PATH = '/Users/ksdev/Documents/SpaceDemo-master/Temp/StagingArea/Data/Managed'
SSH_AUTH_SOCK = '/tmp/launch-g28BAg/Listeners'
PWD = '/Users/ksdev/Downloads/Unity-master/UnityRoot'
GC_DONT_GC = 'yes please'
_ = '/Applications/Unity/Unity.app/Contents/MacOS/Unity'
__CF_USER_TEXT_ENCODING = '0x1F5:0:0' __CHECKFIX1436934 = '1' SHELL = '/bin/bash' GAC_PATH = '/Users/ksdev/Documents/SpaceDemo-master/Temp/StagingArea/Data/Managed' USER = 'ksdev' HOME = '/Users/ksdev' PATH = '/usr/bin:/bin:/usr/sbin:/sbin' SHLVL = '1' result file exists: False. Timed out: False
stdout: Mono Ahead of Time compiler - compiling assembly /Users/ksdev/Documents/SpaceDemo-master/Temp/StagingArea/Data/Managed/Assembly-CSharp.dllStructure field of type IntPtr[] can't be marshalled as LPArray stderr:
at UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) [0x00000] in :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 :0 at UnityEditor.MonoCrossCompile+JobCompileAOT.ThreadPoolCallback (System.Object threadContext) [0x00000] in :0 UnityEditor.HostView:OnGUI()
Your answer
![](https://koobas.hobune.stream/wayback/20220613163643im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
is there a way to link .NET dll base on platform? 0 Answers
GPU Skinning on iOS Devices? 2 Answers
Occlusion Culling in IOS Build? 1 Answer
How do you save data and load data on iOS, Android, and Blackberry 0 Answers
Export IOS with windows (mobile) 3 Answers