Git ignore file for Xcode projects

后端 未结 20 1231
栀梦
栀梦 2020-11-22 03:03

Which files should I include in .gitignore when using Git in conjunction with Xcode?

20条回答
  •  别那么骄傲
    2020-11-22 03:32

    Based on this guide for Mercurial my .gitignore includes:

    .DS_Store
    *.swp
    *~.nib
    
    build/
    
    *.pbxuser
    *.perspective
    *.perspectivev3
    

    I've also chosen to include:

    *.mode1v3
    *.mode2v3
    

    which, according to this Apple mailing list post, are "user-specific project settings".

    And for Xcode 4:

    xcuserdata
    

提交回复
热议问题