Fixed modern Xcode compatibility and added .gitignore