当同时导入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)
2[System.Reflection.Assembly,System.Reflection.Assembly].MoveNext ()
AssemblyLister.Lister+<>c__DisplayClass1_0.<get_AllAssemblies>b__0 (System.Reflection.Assembly asm)
System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12
System.Linq.Enumerable+c__Iterator122[System.Reflection.Assembly,LeanCloud.Storage.Internal.AVModuleAttribute].MoveNext ()
2[LeanCloud.Storage.Internal.AVModuleAttribute,System.Type].MoveNext ()
System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10
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)
谢谢
-
创建时间
17年4月15日
-
最后回复
17年7月10日
-
13
回复
-
4.2K
浏览
-
3
用户
-
2
链接