Use GitHub's Xcode ignore template
An Xcode 5 project based example
An Xcode 5 workspace based project
An Xcode 6 project based project
An Xcode 6 workspace based project
A swift example
Merge pull request #1 from calabash/feature/xcode-projects

Example Xcode 5 and 6 projects