leancloud / realtime-SDK-dotNET

LeanCloud Instants Messaging SDK for Portable & Unity & .NET Core written by c#
Apache License 2.0
13 stars 9 forks source link

在Unity中依赖了UnityEditor.iOS.Extensions.Xcode,导致所有人都必须安装iOS编译环境 #38

Open 777777716 opened 7 years ago

777777716 commented 7 years ago

FileNotFoundException: Could not load file or assembly 'UnityEditor.iOS.Extensions.Xcode' or one of its dependencies. The system cannot find the file specified. System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef, System.Security.Policy.Evidence assemblySecurity) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/AppDomain.cs:692) (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName,System.Security.Policy.Evidence) System.AppDomain.Load (System.Reflection.AssemblyName assemblyRef) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/AppDomain.cs:657) (wrapper remoting-invoke-with-check) System.AppDomain:Load (System.Reflection.AssemblyName) System.Reflection.Assembly.Load (System.Reflection.AssemblyName assemblyRef) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Assembly.cs:589) AssemblyLister.Lister.DeepWalkReferences (System.Reflection.Assembly assembly, System.Collections.Generic.HashSet1 seen) AssemblyLister.Lister+<>c__DisplayClass1_0.<get_AllAssemblies>b__0 (System.Reflection.Assembly asm) System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator122[System.Reflection.Assembly,System.Reflection.Assembly].MoveNext () System.Linq.Enumerable+cIterator12`2[System.Reflection.Assembly,LeanCloud.Storage.Internal.AVModuleAttribute].MoveNext () System.Linq.Enumerable+cIterator102[LeanCloud.Storage.Internal.AVModuleAttribute,System.Type].MoveNext () System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D1[System.Type].MoveNext () LeanCloud.Storage.Internal.AVModuleController.ScanForModules () LeanCloud.AVClient..cctor () Rethrow as TypeInitializationException: An exception was thrown by the type initializer for LeanCloud.AVClient LeanCloud.AVInitializeBehaviour.Initialize ()

Borluse commented 7 years ago

装个unity的ios支持,或者用leancloud提供了的那个xcode的dll

777777716 commented 7 years ago

@Borluse 装iOS发布环境非常不方便的,这样的话策划、QA全部都需要安装。 Leancloud并没有提供xcode的dll,以下为文件列表 image

Borluse commented 7 years ago

记得以前的版本是有的。。。我这有个5.6的,你可以试试 UnityEditor.iOS.Extensions.Xcode.dll.zip 这个是从我的ios的安装环境中拿出来的。 不过如果你用了集成构建的话,你得想办法编译的时候去掉它。

不过说回来leancloud用这个dll还是很奇怪的。。。

Borluse commented 7 years ago

我们是所有人都装了ios支持了。不过我们团队比较小。。 忘了说,如果你团队中也有人装了ios的支持的话,也需要拿掉这个dll。否则会报重复定义的错误。

777777716 commented 7 years ago

是的,我也觉得很奇怪。 谢谢提供dll,目前也只能用这个方法了

Borluse commented 7 years ago

不客气

wujun4code commented 7 years ago

https://github.com/leancloud/unity-sdk

这里有说明。。。看来不能犯懒,得所有地方都更新一下。

Borluse commented 7 years ago

这个地方还是很奇怪,我觉得 @wujun4code 应该看一下能不能在非ios平台上去掉xcode的依赖。