Why can't I generate XCode files?

I’ve successfully compiled the engine from source and can start the editor no problem. However, if I right click on my uproject and hit Generate XCode Files. Finder stalls for about 10 or 15 seconds and no xcode files are generated. Is there a log file or something for the service that is used to generate the files?

I’m on a latest gen macbook air with mavricks and xcode 5.1.

Cheers

Kyle

1 Like

I believe that you should be able to see errors from it in the system log. Maybe something’s wrong with .uproject file associations on your Mac? Currently UE4EditorServices that handles .uproject right click menu options is relying on .uproject file being set to open with UE4Editor. It’s one of the things we hope to improve soon.

Here’s how to generate the project from terminal, in case it takes us some time to figure out why the services do not work for you:

  1. Open Terminal.app
  2. cd /Engine/Build/BatchFiles/Mac/
  3. ./GenerateProjectFiles.sh -project="/MyProject.uproject" -game

Thanks that did the trick.

What Michael said.

Open Terminal.app

cd /Engine/Build/BatchFiles/Mac/

./GenerateProjectFiles.sh
-project=“/MyProject.uproject” -game

Hey one aside on this.

I seeded the project from a windows machine. Then did the sync from perforce onto my mac. It looks like the UE4EditorServices (among other programs) were not set to be executable. After fixing the flags in perforce, it looks to be working now.

Not sure how exactly to solve this for everyone going forward, maybe the scripts can validate this soft of thing or something?

Actually, that’s what we did, extending FixDependencyFiles.sh from here: https://github.com/dkjer/UnrealEngine/commit/7967414967017c891908d14495a57d7b0282c1bc :slight_smile: This will be part of 4.1 release.

If you haven’t downloaded the source from Github, you can still do this with Terminal; the .sh file is in a different spot:

/Users/Shared/UnrealEngine/4.1/Engine/Build/BatchFiles/Mac/RocketGenerateProjectFiles.sh

Incidentally, with 4.1 the Services Menu still isn’t working. I was trying to run it on a project originally created on Windows.

Could you give me more details, please? You don’t have Generate Xcode Project etc. in your services menu, or you have them, but they don’t work?