Problem when pulling project source with git

Hi all, I just pushed for the first time an UE4 project from a git repo and, when trying to open the project, I get this error:

Missing [GameName] Modules The following modules are missing or built with a different engine version: UE4Editor-[GameName].dylib

where [GameName] is the name of the project.

The project has been created on a Windows machine, while I’m working on a Mac computer, and I guess that’s where the problem comes from. Can anyone help me solving this?

I was suggested on answerhub to recompile the project on Mac, but I get prompted with this option by the engine itself, but the building fails.

Thank you for your time.

I think one of the problems is my .gitignore: can anybody share their thoughts about a good .gitignore (both for OS X and Windows) to use in UE4 projects?

Mine is:
“Binaries
DerivedDataCache
Intermediate
Saved
Content/StarterContent/*
*.opensdf
*.suo
*.sdf”

I’m using the following .gitignore:

/Binaries
/DerivedDataCache
/Intermediate
/Saved

*.sln
*.xcodeproj
*.suo
*.opensdf
*.sdf
*.sln

and, while my team is having no problem on Windows machines, myself on OS X I get, on project loading, a build failed error. Any tips?