Git ignore file for Xcode projects

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

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

20条回答
  •  余生分开走
    2020-11-22 03:31

    I recommend using joe to generate a .gitignore file.

    For an iOS project run the following command:

    $ joe g osx,xcode > .gitignore

    It will generate this .gitignore:

    .DS_Store
    .AppleDouble
    .LSOverride
    
    Icon
    ._*
    
    .DocumentRevisions-V100
    .fseventsd
    .Spotlight-V100
    .TemporaryItems
    .Trashes
    .VolumeIcon.icns
    
    .AppleDB
    .AppleDesktop
    Network Trash Folder
    Temporary Items
    .apdisk
    
    build/
    DerivedData
    
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata
    
    *.xccheckout
    *.moved-aside
    *.xcuserstate
    

提交回复
热议问题