Skip to main content
New Participant
September 25, 2014

Cross compilation job Assembly-CSharp.dll failed for iOS

In addition to Direct to Rift - iOS build gives error when 0.4.2 tool is implemented. (I may open a new thread)
Open a new - empty project. Integrate OVR 0.4.2 tool and build for iOS gives that error (given below). It means that the tool uses something that Unity can't convert for iOS which can be solved by Platform Dependent Compilation (I guess.)

PS. I am integrating tool and building for iOS because I am using oculus on windows /mac build and I don't want to add/ delete each time to switch to iOS mode. The tool should just work :P

Error on building for iOS platform (from Unity 4.5.4f1 pro)

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/dogukan/Documents/TempToDelete/Oculus042/Temp/StagingArea/Data/Managed
Env: Apple_PubSub_Socket_Render = '/tmp/launch-Dq8kGl/Render'
    This topic has been closed for replies.

    1 reply

    korinVR
    Honored Contributor
    November 4, 2014
    I enclosed all OVR/Scripts/*.cs and OVR/Editor/*.cs with "#if !UNITY_IOS" to work around this issue.
    Looks like 0.4.3 does not have this problem :)
    Katsuomi Kobayashi ( @korinVR ) at FrameSynthesis Inc.