Add Xcode support.
Merge pull request #1007 from fabiensanglard/Xcode

Extract XCode to a Global/ template