我正在尝试让我的 iOS 游戏为 iOS 构建。我将脚本后端设置为 IL2CPP(armv7 和 arm64),但出现以下错误。
我使用MobileMoveScript Plugin 2.1.3
和Mobile Social Plugin 6.6
。我认为插件没有任何问题,因为我尝试单独构建它们并且它有效。
运行失败
/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/Managed" -l none -c链接 -x "/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml" -f "/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors" -x "/Users /abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/ methods_pointedto_by_uievents.xml" -x "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Assets/link.xml" -d "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/Managed" -a "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/Managed/Assembly-CSharp .dll" -a "/Users/abeltherock007/Documents/Unity Projects/Talking Superstar 2/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll"
标准输出;Mono CIL 链接器 Mono.Cecil.AssemblyResolutionException 中的致命错误:无法解析程序集:Mono.Linker.LinkContext.Resolve 处的“U3DXTCore,Culture=neutral,PublicKeyToken=null”(IMetadataScope 范围)[0x00000] 在 Mono.Linker 处:0 .Steps.ResolveFromXmlStep.GetAssembly (Mono.Linker.LinkContext context, System.String assemblyName) [0x00000] in :0 在 Mono.Linker.Steps.ResolveFromXmlStep.ProcessAssemblies (Mono.Linker.LinkContext context, System.Xml.XPath.XPathNodeIterator迭代器)[0x00000] 在:0 在 Mono.Linker.Steps.ResolveFromXmlStep.Process () [0x00000] 在:0 在 Mono.Linker.Steps.BaseStep.Process(Mono.Linker.LinkContext 上下文)[0x00000] 在:0在 Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext 上下文) [0x00000] 在 Mono.Linker.Driver.Run () [0x00000] 在 Mono.Linker:0 中。
UnityEngine.Debug:LogError(Object) UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable`1) UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable`1) UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable`1) UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String[], String[], String) UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String[], String) UnityEditorInternal.IL2CPPBuilder:Run() UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) UnityEditor.HostView:OnGUI()