当同时导入Leancloud最新插件和Unity自带的IAP插件时出现如下问题:
error CS1704: An assembly with the same name `UnityEditor.iOS.Extensions.Xcode' has already been imported. Consider removing one of the references or sign the assembly
Assets/LeanCloud/UnityEditor.iOS.Extensions.Xcode.dll (Location of the symbol related to previous error)
/Applications/Unity/PlaybackEngines/iOSSupport/UnityEditor.iOS.Extensions.Xcode.dll (Location of the symbol related to previous error)

Compilation failed: 1 error(s), 0 warnings

我去查了下,在/Applications/Unity/PlaybackEngines/iOSSupportxia这个文件夹下已经有了UnityEditor.iOS.Extensions.Xcode.dll。
之后把插件中的UnityEditor.iOS.Extensions.Xcode.dll删掉,编译通过,运行时又出现下面错误:
FileNotFoundException: Could not load file or assembly 'UnityEditor.Purchasing' 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__Iterator12
2[System.Reflection.Assembly,System.Reflection.Assembly].MoveNext ()
System.Linq.Enumerable+c__Iterator122[System.Reflection.Assembly,LeanCloud.Storage.Internal.AVModuleAttribute].MoveNext ()
System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10
2[LeanCloud.Storage.Internal.AVModuleAttribute,System.Type].MoveNext ()
System.Linq.Enumerable+c__Iterator1D`1[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 ()
LeanCloud.AVInitializeBehaviour.Awake ()

请问这个问题要怎样解决?(用的mac版的Unity)
谢谢

能否截图我看一下你现在文件里面有引入了哪些 DLL 文件?

请问具体怎样操作呢?我用/Applications/Unity/Unity.app/Contents/UnityExtensions/Unity/Advertisements/Editor/UnityEditor.iOS.Extensions.Xcode.dll这个替换掉插件里的dll,运行时还是有错误啊?

您的 Unity 版本是多少?我这边 5.5 没有问题。

要不您把你的项目打包上传给我,我在 mac 上运行一下。

新建的项目也是这样的

你回复帖子的时候可以附加附件的,你打包成 zip

请问解决了吗,unity5.6导入进去后也同样报错