When building an Unreal Engine project for distribution, a common issue is the “multiple build targets found” error. This will stop the build with no real explanation as to why this happened. Turns out there’s an easy fix for it: the multiple targets it refers to are typically created when we rename a project. This also renames the build target under the hood, also leaving one with the previous project name and now UE gets confused.
Here’s how to fix it:
- close down your Unreal Editor (naturally)
- find your project folder
- head over to the Intermediate – Source folder
- see a bunch of .cs and .cpp files
Notice the name of these files. Delete all files that have your previous project name in here, and only leave files that contain your current project name. Now re-launch UE and try building again. This particular build error should be fixed.
Mike The Tech explains really well in this video:
Thanks, Mike!