記一下在ios上打包出錯:
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
之前是不出錯的,但不知道怎麼這次打開就出現了這個錯誤
解決方法:1:Edit->Project Settings -> Editor -> Asset Serialziation Mode設置為 Force Text
2:在該項目下找到ProjectSettings->UnityConnectSetting.asset,用vs或者文本編輯器打開,找到CrashReportingSettings下的m_Enabled:1改為m_Enabled:0即可
再次打包生成成功,並且沒有拋出異常。