Currently when you select File > Package > Mac you need to pass in arguments for non-code projects, or if you are using pak files. To do so open Terminal and enter the following :
Open -a ProjectName.app --args ../../../ProjectName/ProjectName.uproject -pak
This will launch the Packaged Game.
Nick Bullard-Bradley | Engine QA | Epic Games Inc.
Open -a UE4Game.app --args /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/test/MacNoEditor/ContentExamples/Content/Paks/ContentExamples-MacNoEditor.pak
Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/OculusTest.uproject -pak
and I get this error:
LSOpenURLsWithRole() failed for the application /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app with error -10810.
For what it’s worth, I was able to reproduce this on my home Mac. I’m very sorry, but I don’t have any ideas what can be wrong and at the moment I have no way to debug this. We will investigate this first thing tomorrow.
Just to clear something up with what I posted earlier. The .uproject it’s looking for is not the one in Documents/Unreal Projects/MyPjectName/MyProject.uproject. So it’s not an absolute path that you need to pass, its relative to the the UE4Game.app, as it’s stored in the .pak file.
In your MacNoEditor Folder that gets created you have Engine and ProjectName folder.
In the image below, (i used Reflections) the right finder shows a packaged project with User Pak file disabled.
As you can see there is another copy of the .uproject here, which is what the UE4Game.app is looking for.
When using Pak file, this gets stored inside it the .pak file.
Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args ../../../OculusTest/OculusTest.uproject -pak
Open -a /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app --args …/…/…/OculusTest/OculusTest.uproject -pak
Is exactly what I tried, but I get this error:
LSOpenURLsWithRole() failed for the application /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app with error -10810.
Could you check to see if /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac/UE4Game.app has the executable bit set?
In a terminal window, change directory to /Users/dalecarman/Dropbox/Projects/Development/Oculus/unreal/OculusTest/Content/build/MacNoEditor/Engine/Binaries/Mac
Then run ls -l and see if the UE4Game.app has the x in the permissions.
If it doesn’t, then running chmod +x UE4Game.app should fix the problem. If so, then it is a bug on our side where we are not properly setting the flags.