-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS AOT failing? #27
Comments
Extra info: Unity version is 4.2.2f1 |
Did you try to add the link.xml? |
My apologies, I'm a little new to Mono development. Is there a list of all the WebSocket-sharp classes I should be including in this link.xml? I'd be happy to commit the link.xml back to the project after I construct it, just not 100% sure what to include in it. |
Additionally, I appear to have stripping off so I'm not 100% sure if that's the cause (although turning stripping on does seem to give a new error so I'm sure I'll eventually need to do it). |
Hmm,,, How about api compatibility level to .NET API 2.0? (If you selected .NET 2.0 Subset) |
I've made stripped version of websocket-sharp for Unity on iOS/Android Changes are:
|
The library is working fine in the Editor (purchased through Asset store), but I'm getting this when I build for iOS:
Cross compilation job websocket-sharp.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,ficall,static,outfile="websocket-sharp.dll.s" "websocket-sharp.dll" current dir : Temp/StagingArea/Data/Managed
result file exists: True
stdout:
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.BuildPlayerWindow:BuildPlayerAndRun()
The text was updated successfully, but these errors were encountered: