- Open the project’s DefaultEngine.ini configuration file. You can find this file in the Config folder of your project directory.
- Look for the [/Script/BuildSettings.BuildSettings] section in the configuration file.
- If the DefaultEditorTarget setting is missing, add the following line to the BuildSettings section:
DefaultEditorTarget=TargetName
Replace “TargetName” with the name of the editor target that you want to set as the default. The name of the editor target should match the name of the .uproject file for that target.
- Save the DefaultEngine.ini file and close it.
- Rebuild your project and try packaging it again.