UpgradeManager issue with Unity 5.6

More
7 years 8 months ago - 7 years 8 months ago #2183 by mcmorry
After upgrading to Unity 5.6, the UpgradeManager is throwing this exception:

PlayerSettings Validation: Requested build target group (27) doesn't exist; #define symbols for scripting won't be added.
UnityEditor.PlayerSettings:SetScriptingDefineSymbolsForGroup(BuildTargetGroup, String)
I2.Loc.UpgradeManager:EnablePluginsOnPlatform(BuildTargetGroup) (at Assets/Plugins/I2/Localization/Scripts/Editor/UpgradeManager.cs:112)
I2.Loc.UpgradeManager:EnablePlugins(Boolean) (at Assets/Plugins/I2/Localization/Scripts/Editor/UpgradeManager.cs:83)
I2.Loc.UpgradeManager:CheckPlugins(Boolean) (at Assets/Plugins/I2/Localization/Scripts/Editor/UpgradeManager.cs:32)
I2.Loc.UpgradeManager:AutoCheckPlugins() (at Assets/Plugins/I2/Localization/Scripts/Editor/UpgradeManager.cs:21)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()


I'm not sure what to do or check to fix it.
Last edit: 7 years 8 months ago by mcmorry.

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #2184 by mcmorry
So 27 is the Switch platform.
If I open the Unity build popup, Switch is not listed there.
But the same doesn't apply to other targets that are not listed and are not rising any errors.

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #2185 by Frank
Hi,
I'm releasing a proper fix in the next beta, but for now, a workaround is to skip that platform:

In the file Assets\I2\Localization\Scripts\Editor\UpgradeManager.cs line 81, add the condition target != BuildTargetGroup.Switch
like this:
			foreach (BuildTargetGroup target in System.Enum.GetValues(typeof(BuildTargetGroup)))
				if (target!=BuildTargetGroup.Unknown && !target.HasAttributeOfType<System.ObsoleteAttribute>() && target != BuildTargetGroup.Switch)
				{
					EnablePluginsOnPlatform( target );
				}

Hope that helps,
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out
The following user(s) said Thank You: mcmorry

Please Log in or Create an account to join the conversation.

Time to create page: 0.145 seconds
Template by JoomlaShine