iOS Packaging fails

I’m trying to build for iOS on iMac. Mobile Provision and Certificate are set up. The project is C++ and BP. The error message appears when I try to package or deploy directly to the device.

UE 4.22
MacOS 10.14.6
Xcode 10.3

`UnrealPluginLanguage.Init: UPL Init: None
Log.WriteException:

Log.WriteException: ERROR: System.NullReferenceException: Object reference not set to an instance of an object
Log.WriteException: at Tools.DotNETCommon.FileSystemReference.CombineStrings (Tools.DotNETCommon.DirectoryReference BaseDirectory, System.String[] Fragments) [0x00047] in <0ec17bd1cb89401487af6654befd51b4>:0
Log.WriteException: at Tools.DotNETCommon.FileReference.Combine (Tools.DotNETCommon.DirectoryReference BaseDirectory, System.String[] Fragments) [0x00000] in <0ec17bd1cb89401487af6654befd51b4>:0
Log.WriteException: at IOSPlatform.WriteEntitlements (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x000a5] in <2db7284be806459f8143e6c2a92f35f1>:0
Log.WriteException: at IOSPlatform.Package (AutomationTool.ProjectParams Params, DeploymentContext SC, System.Int32 WorkingCL) [0x00457] in <2db7284be806459f8143e6c2a92f35f1>:0
Log.WriteException: at Project.Package (AutomationTool.ProjectParams Params, System.Int32 WorkingCL) [0x000bc] in <3164993c0f274a4881e2b86f16956f50>:0
Log.WriteException: at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00094] in <3164993c0f274a4881e2b86f16956f50>:0
Log.WriteException: at BuildCookRun.ExecuteBuild () [0x00040] in <3164993c0f274a4881e2b86f16956f50>:0
Log.WriteException: at AutomationTool.BuildCommand.Execute () [0x00001] in :0
Log.WriteException: at AutomationTool.Automation.Execute (System.Collections.Generic.List1[T] CommandsToExecute, System.Collections.Generic.Dictionary2[TKey,TValue] Commands) [0x0007c] in :0
Log.WriteException: at AutomationTool.Automation.Process (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x0026f] in :0
Log.WriteException: at AutomationTool.Program.MainProc (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00001] in :0
Log.WriteException: at AutomationTool.Program+<>c__DisplayClass1_0.b__2 () [0x00000] in :0
Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance (System.Func1[TResult] Main) [0x000a0] in :0 Log.WriteException: at AutomationTool.Program.Main (System.String[] Arguments) [0x0020a] in :0 Log.WriteException: (see /Users/carsten/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace) Log.WriteException: Log.WriteException: NullReferenceException: Object reference not set to an instance of an object Log.WriteException: at Tools.DotNETCommon.FileSystemReference.CombineStrings (Tools.DotNETCommon.DirectoryReference BaseDirectory, System.String[] Fragments) [0x00047] in <0ec17bd1cb89401487af6654befd51b4>:0 Log.WriteException: at Tools.DotNETCommon.FileReference.Combine (Tools.DotNETCommon.DirectoryReference BaseDirectory, System.String[] Fragments) [0x00000] in <0ec17bd1cb89401487af6654befd51b4>:0 Log.WriteException: at IOSPlatform.WriteEntitlements (AutomationTool.ProjectParams Params, DeploymentContext SC) [0x000a5] in <2db7284be806459f8143e6c2a92f35f1>:0 Log.WriteException: at IOSPlatform.Package (AutomationTool.ProjectParams Params, DeploymentContext SC, System.Int32 WorkingCL) [0x00457] in <2db7284be806459f8143e6c2a92f35f1>:0 Log.WriteException: at Project.Package (AutomationTool.ProjectParams Params, System.Int32 WorkingCL) [0x000bc] in <3164993c0f274a4881e2b86f16956f50>:0 Log.WriteException: at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00094] in <3164993c0f274a4881e2b86f16956f50>:0 Log.WriteException: at BuildCookRun.ExecuteBuild () [0x00040] in <3164993c0f274a4881e2b86f16956f50>:0 Log.WriteException: at AutomationTool.BuildCommand.Execute () [0x00001] in :0 Log.WriteException: at AutomationTool.Automation.Execute (System.Collections.Generic.List1[T] CommandsToExecute, System.Collections.Generic.Dictionary2[TKey,TValue] Commands) [0x0007c] in :0 Log.WriteException: at AutomationTool.Automation.Process (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x0026f] in :0 Log.WriteException: at AutomationTool.Program.MainProc (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00001] in :0 Log.WriteException: at AutomationTool.Program+<>c__DisplayClass1_0.b__2 () [0x00000] in :0 Log.WriteException: at AutomationTool.InternalUtils.RunSingleInstance (System.Func1[TResult] Main) [0x000a0] in :0
Log.WriteException: at AutomationTool.Program.Main (System.String[] Arguments) [0x0020a] in :0
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
`