Skip to content
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

Open
tolmasky opened this issue Nov 25, 2013 · 6 comments
Open

iOS AOT failing? #27

tolmasky opened this issue Nov 25, 2013 · 6 comments

Comments

@tolmasky
Copy link

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

@tolmasky
Copy link
Author

Extra info: Unity version is 4.2.2f1

@sk-ericso
Copy link

@tolmasky
Copy link
Author

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.

@tolmasky
Copy link
Author

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

@sta
Copy link
Owner

sta commented Nov 27, 2013

Hmm,,, How about api compatibility level to .NET API 2.0? (If you selected .NET 2.0 Subset)

@methane
Copy link

methane commented Feb 6, 2014

I've made stripped version of websocket-sharp for Unity on iOS/Android
https://github.com/KLab/websocket-unitymobile

Changes are:

  • Remove server related code.
  • Fix some troubles related full-AOT (to run on iOS)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants