kumakore / kumakore-sdk

Kumakore SDK
http://www.kumakore.com
3 stars 0 forks source link

Can't compile for iOS v0.5.5 #47

Open Callabrator opened 10 years ago

Callabrator commented 10 years ago

Building for an iOS device with KK SDK v0.5.5? I'm getting a warning:

Assembly 'kumakore' has non matching file name: 'kumakore_unity3d.dll'. This can cause build issues on some platforms. UnityEditor.HostView:OnGUI()

Which I believe is the cause of the following compile error on iOS only:

Cross compilation job Assembly-CSharp.dll failed. UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity_4_2_2/Unity_4_2_2.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll" current dir : /Projects/Toro/Temp/StagingArea/Data/Managed result file exists: False 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.HostView:OnGUI()

chbfiv commented 10 years ago

This should be an easy fix. I'll make sure I include the kumakore_unity3D.dll in the correct plugin folders for at least iOS/Android/Windows. For the time being the SDK dll is the same on all platforms, but eventually the iOS/Android will have additional features and their own build.

Until the next build, you should be able to create a new folder com.kumakore/Plugins/iOS and then copy kumakore_unity3d.dll into the new iOS folder. com.kumakore/Plugins/iOS/kumakore_unity3d.dll

Same goes for Android. com.kumakore/Plugins/Android/kumakore_unity3d.dll

I'll also add this task to this milestone to check everything today.