ios - Unity 5.1.1错误: dll is not allowed to be included or could not be found

标签 ios dll unity3d

我是 Unity 的新手,正在使用 Unity 5.1.1 升级我的一个应用程序。它在 4.6.2 上运行良好,但升级后出现以下错误

ArgumentException: The Assembly UnityEditor is referenced by iGUI ('Assets/lib/igui/Runtime/iGUI.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:160)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192)
UnityEditor.HostView:OnGUI()

我尝试将兼容性从“.net 2.0 子集”更改为“.net 2.0”,但这没有用。

任何帮助将不胜感激

提前致谢

最佳答案

我在尝试构建包含自定义 DLL 的游戏时遇到了类似的问题,尽管我的错误消息略有不同。

ArgumentException: The Assembly UnityEditor is referenced by Namespace.In.MyCustom.Dll ('Assets/Dlls/MyCustom.dll'). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:156)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)
UnityEditor.HostView:OnGUI()

我的 DLL 引用 UnityEditor.dll,它不会包含在统一游戏的任何分发版本中。 我通过在 Unity 中选择 MyCustom.dll 解决了这个问题,并通过取消选中“Any Platform”(参见图片)停止将其包含在构建过​​程中。

dll import settings

万一你referenced functionality of UnityEditor.dll in one of your GameObjects , 你可能想试试 platform dependent compilation .

关于ios - Unity 5.1.1错误: dll is not allowed to be included or could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31001070/

相关文章:

ios - 无法在 UISearchController 中为 UITextField 设置正确的背景颜色

c++ - “The value of ESP was not properly saved across a function call.”

c++ - 将 NuGet Boost DLL 自动复制到输出目录

c++ - 在多个 DLL 中分离类实现

C# - 将类的新实例添加到数组

c# - 如何检查动画师的某个动画状态是否正在运行?

ios - 使用 Cocos2D 中数组中的 Sprite 进行碰撞检测

ios - 使用 didReceiveRemoteNotification 打开时如何跳过 applicationWillBecomeActive

ios - Firebase iOS Facebook 简单登录错误

unity3d - 将 Unity 脚本附加到游戏对象时出错