Launch Fail for Magic Leap

When trying to build a blank scene with only a cube in it, UE4 Fails to launch into the Magic Leap. I’ve installed all the necessary components and SDK files into the proper place and updated the SDK directory in the project settings. When trying to Launch to Magic Leap One I get the following errors and the launch fails:

LogPlayLevel: Took 0.0992907s to run mldb.exe, ExitCode=1
LogPlayLevel: Running: C:\Users\jordanharvey\MagicLeap\mlsdk\v0.20.0\tools\mldb\mldb.exe -s G8206M001681 install “D:\MagicLeap\UE4\Test\Binaries/Lumin\Test.mpk”
LogPlayLevel: [ 0%] Test.mpk
LogPlayLevel: Error: error: Could not verify the package (34).
LogPlayLevel: Took 1.8497804s to run mldb.exe, ExitCode=1
LogPlayLevel: Error: ERROR: Failed to install D:\MagicLeap\UE4\Test\Binaries/Lumin\Test.mpk
LogPlayLevel: (see C:\Users\jordanharvey\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE4+UE_4.22\Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 15.515248
LogPlayLevel: BUILD FAILED
PackagingResults: Error: Launch failed! Unknown Error

Hi!

I just ran into this problem and was able to solve it by and adding mycert.cert and mycert.privatekey to Build/Lumin folder and editing Conig/DefualtEngine.ini

[/Script/LuminRuntimeSettings.LuminRuntimeSettings]
PackageName=com.magicleap.cubecontroller
ApplicationDisplayName=
bIsScreensApp=False
FrameTimingHint=FPS_60
bProtectedContent=False
bManualCallToAppReady=False
bUseMobileRendering=True
bUseVulkan=True
Certificate=(FilePath=“Build/Lumin/mycert.cert”)
IconModelPath=(Path=“Build/Lumin/Model”)
IconPortalPath=(Path=“Build/Lumin/Portal”)
VersionCode=1
MinimumAPILevel=6
-AppPrivileges=LowLatencyLightwear
-AppPrivileges=Internet
-AppPrivileges=LocalAreaNetwork
-AppPrivileges=GesturesSubscribe
-AppPrivileges=GesturesConfig
-AppPrivileges=CameraCapture
-AppPrivileges=WorldReconstruction
-AppPrivileges=PwFoundObjRead
-AppPrivileges=ScreensProvider
-AppPrivileges=AudioCaptureMic
-AppPrivileges=IdentityRead
-AppPrivileges=VoiceInput
-AppPrivileges=ControllerPose
+AppPrivileges=LowLatencyLightwear
+AppPrivileges=Internet
+AppPrivileges=LocalAreaNetwork
+AppPrivileges=GesturesConfig
+AppPrivileges=CameraCapture
+AppPrivileges=WorldReconstruction
+AppPrivileges=ControllerPose
+AppPrivileges=CoarseLocation
SpatializationPlugin=
ReverbPlugin=
OcclusionPlugin=
bRemoveDebugInfo=True
bFrameVignette=False
+AppPrivileges=AddressBookRead
+AppPrivileges=AddressBookWrite
+AppPrivileges=CoarseLocation
+AppPrivileges=HandMesh