{"record":{"id":"7816a772327be92e","repo":"Unity-Technologies/UnityCsReference","slug":"build-target-target-not-supported","errorCode":null,"errorMessage":"Build target '{target}' not supported","messagePattern":"Build target '(.+?)' not supported","errorType":"exception","errorClass":"UnityException","httpStatus":null,"severity":"error","filePath":"Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs","lineNumber":342,"sourceCode":"        [RequiredByNativeCode]\n        static public void Postprocess(BuildTarget target, int subtarget, string installPath, string companyName, string productName,\n            BuildOptions options,\n            RuntimeClassRegistry usedClassRegistry, BuildReport report, string[] defineConstraints)\n        {\n            string stagingArea = \"Temp/StagingArea\";\n            string stagingAreaData = \"Temp/StagingArea/Data\";\n            string stagingAreaDataManaged = \"Temp/StagingArea/Data/Managed\";\n            string playerPackage = BuildPipeline.GetPlaybackEngineDirectory(target, options);\n\n            // Disallow providing an empty string as the installPath\n            bool willInstallInBuildFolder = (options & BuildOptions.InstallInBuildFolder) != 0 && SupportsInstallInBuildFolder(target);\n            if (installPath == String.Empty && !willInstallInBuildFolder)\n                throw new Exception(installPath + \" must not be an empty string\");\n\n            IBuildPostprocessor postprocessor = ModuleManager.GetBuildPostProcessor(target);\n            if (postprocessor == null)\n                // If postprocessor is not provided, build target is not supported\n                throw new UnityException($\"Build target '{target}' not supported\");\n\n            try\n            {\n                AddIconsArgs iconArgs;\n                iconArgs.stagingArea = stagingArea;\n                if (!postprocessor.AddIconsToBuild(iconArgs))\n                    throw new BuildFailedException(\"Failed to add player icon\");\n\n                BuildPostProcessArgs args;\n                args.target = target;\n                args.subtarget = subtarget;\n                args.stagingAreaData = stagingAreaData;\n                args.stagingArea = stagingArea;\n                args.stagingAreaDataManaged = stagingAreaDataManaged;\n                args.playerPackage = playerPackage;\n                args.installPath = installPath;\n                args.companyName = companyName;\n                args.productName = productName;","sourceCodeStart":324,"sourceCodeEnd":360,"githubUrl":"https://github.com/Unity-Technologies/UnityCsReference/blob/225b0fbdb57cc17d094e8056b71f8314aba56f73/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs#L324-L360","documentation":"Postprocess throws UnityException when ModuleManager.GetBuildPostProcessor(target) returns null, i.e. no platform module registered an IBuildPostprocessor for the requested target. Without a post-processor the build cannot be finalized for that platform.","triggerScenarios":"Building/Postprocessing for a target whose support module is not installed in the editor (e.g. building Android without the Android module, or a console target without its NDA module).","commonSituations":"Editor installed without the required platform module via Unity Hub; building a target only available in a different Unity edition; module failed to load at startup.","solutions":["Install the build support module for the target (Unity Hub > Installs > Add Modules).","Verify the target is supported by your Unity edition/license before building.","Check Editor.log for module load failures if the module is installed but GetBuildPostProcessor still returns null."],"exampleFix":"/* no source edit */\n// before: build for BuildTarget.Android with no Android module -> throws\n// after: Unity Hub > Installs > Add Modules > select Android Build Support > retry build","handlingStrategy":"validation","validationCode":"if (ModuleManager.GetBuildPostProcessor(target) == null)\n    throw new UnityException($\"Build target '{target}' has no post-processor; install its module via Unity Hub.\");","typeGuard":"static bool IsTargetSupported(BuildTarget t) => ModuleManager.GetBuildPostProcessor(t) != null;","tryCatchPattern":null,"preventionTips":["Install platform modules through Unity Hub before building for that target.","Check Editor.log for module load failures if the module is present but unresolved."],"tags":["build-pipeline","postprocess","module-manager","platform-support"],"backgroundTag":null,"analyzedSha":"225b0fbdb57cc17d094e8056b71f8314aba56f73","analyzedAt":"2026-08-13T19:07:19.849Z","schemaVersion":2},"datasetVersion":"2026-08-13T19:17:28.613Z"}