I’m getting the following call stack when trying to package a product. I’ve spent several days trying to figure this out including confirming that each module packages fine in a clean project. It would help if there was any information at all as to what was causing the error since none of the editor modules should be included in packaging.
PackagingResults: Error: ERROR: Non-editor build cannot depend on non-redistributable modules. /Users/Sid/Documents/UnrealProjects/RPGPluginTest_421/Binaries/Mac/RPGPluginTest-Mac-Shipping.app/Contents/MacOS/RPGPluginTest-Mac-Shipping depends on ‘EditorStyle’, ‘EditorWidgets’, ‘Settings’, ‘SourceCodeAccess’, ‘SourceControl’, ‘CurveEditor’, ‘WorkspaceMenuStru
cture’, ‘CurveAssetEditor’, ‘DesktopPlatform’, ‘TargetPlatform’, ‘MessageLog’, ‘ClassViewer’, ‘HardwareTargeting’, ‘DirectoryWatcher’, ‘AddContentDialog’, ‘GameProjectGeneration’, ‘UATHelper’, ‘Merge’, ‘BlueprintGraph’, ‘KismetWidgets’, ‘ActorPickerMode’, ‘RawMesh’, ‘MaterialBaking’, ‘ClothingSystemEditorInterface’, ‘MeshReductionInterface’, ‘HierarchicalLOD
Utilities’, ‘HierarchicalLODOutliner’, ‘CommonMenuExtensions’, ‘PinnedCommandList’, ‘AdvancedPreviewScene’, ‘SkeletonEditor’, ‘StatsViewer’, ‘DeviceProfileServices’, ‘SceneOutliner’, ‘MovieSceneCaptureDialog’, ‘SequencerWidgets’, ‘SequenceRecorderSections’, ‘Sequencer’, ‘PixelInspectorModule’, ‘DeviceManager’, ‘ExternalImagePicker’, ‘SharedSettingsWidgets’,
‘SettingsEditor’, ‘UnrealEdMessages’, ‘ScreenShotComparisonTools’, ‘AutomationController’, ‘AutomationWindow’, ‘DesktopWidgets’, ‘ScreenShotComparison’, ‘ProfilerMessages’, ‘ProfilerClient’, ‘Profiler’, ‘SessionFrontend’, ‘SlateReflector’, ‘Layers’, ‘LandscapeEditor’, ‘Localization’, ‘InternationalizationSettings’, ‘ConfigEditor’, ‘ViewportInteraction’, ‘Com
ponentVisualizers’, ‘AudioSettingsEditor’, ‘DetailCustomizations’, ‘FoliageEdit’, ‘WorldBrowser’, ‘NewLevelDialog’, ‘DeviceProfileEditor’, ‘CollectionManager’, ‘PlacementMode’, ‘LauncherServices’, ‘IntroTutorials’, ‘VREditor’, ‘LevelEditor’, ‘SequenceRecorder’, ‘AnimationEditor’, ‘Persona’, ‘AnimationModifiers’, ‘MeshBoneReduction’, 'AnimationBlueprintEditor
', ‘SceneDepthPickerMode’, ‘SkeletalMeshEditor’, ‘GraphColor’, ‘MeshUtilitiesCommon’, ‘MeshDescriptionOperations’, ‘QuadricMeshReduction’, ‘MeshBuilder’, ‘MeshUtilities’, ‘StaticMeshEditor’, ‘MeshMergeUtilities’, ‘MaterialUtilities’, ‘MaterialEditor’, ‘MovieSceneTools’, ‘KismetCompiler’, ‘DerivedDataCache’, ‘HotReload’, ‘BlueprintCompilerCppBackend’, ‘Bluepr
intNativeCodeGen’, ‘Kismet’, ‘GraphEditor’, ‘LocalizationCommandletExecution’, ‘LocalizationService’, ‘TranslationEditor’, ‘UndoHistory’, ‘ProjectTargetPlatformEditor’, ‘OutputLog’, ‘LocalizationDashboard’, ‘MainFrame’, ‘TextureEditor’, ‘CurveTableEditor’, ‘DataTableEditor’, ‘FontEditor’, ‘AudioEditor’, ‘AssetTools’, ‘SourceControlWindows’, ‘PackagesDialog’,
‘ContentBrowser’, ‘Documentation’, ‘PropertyEditor’, ‘AnimGraph’, ‘InputBindingEditor’, ‘SwarmInterface’, ‘TargetDeviceServices’, ‘MeshPaint’, ‘MeshPaintMode’, ‘PluginWarden’, ‘ClothingSystemEditor’, ‘PIEPreviewDeviceSpecification’, ‘PIEPreviewDeviceProfileSelector’, ‘PakFileUtilities’, ‘BspMode’, ‘GameplayDebugger’, ‘FunctionalTesting’, ‘DistCurveEditor’,
‘Cascade’, ‘UMGEditor’, ‘Matinee’, ‘EditorSettingsViewer’, ‘PhysicsAssetEditor’, ‘ProjectLauncher’, ‘StringTableEditor’, ‘GeometryMode’, ‘TextureAlignMode’, ‘Blutility’, ‘MergeActors’, ‘ProjectSettingsViewer’, ‘PListEditor’, ‘AIGraph’, ‘BehaviorTreeEditor’, ‘EnvironmentQueryEditor’, ‘ViewportSnapping’, ‘GameplayTasksEditor’, ‘HTML5TargetPlatform’, ‘HTML5Plat
formEditor’, ‘OverlayEditor’, ‘ClothPainter’, ‘TimeManagementEditor’, ‘IOSPlatformEditor’, ‘AndroidDeviceDetection’, ‘AndroidPlatformEditor’, ‘LuminPlatformEditor’, ‘UnrealEd’.
UATHelper: Packaging (Mac): RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults: Error: Non-editor build cannot depend on non-redistributable modules.
PackagingResults: Error: UnrealBuildTool failed. See log for more details. (/Users/Sid/Library/Logs/Unreal Engine/LocalBuildLogs/UBT-RPGPluginTest-Mac-Shipping_2.txt)
PackagingResults: Error: AutomationTool was unable to run successfully.
PackagingResults: Error: Unknown Error
My Target.cs looks like
using UnrealBuildTool;
using System.Collections.Generic;
public class RPGPluginTestTarget : TargetRules
{
public RPGPluginTestTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
ExtraModuleNames.Add(“RPGPluginTest”);
}
}
I’m using 4.21.2 on Mac OS Mojave
If anyone has any idea what is causing this I would be very grateful.