What is the 'standard' content of .gitignore for an iPhone (Xcode) project?

后端 未结 3 2014
無奈伤痛
無奈伤痛 2020-12-14 07:58

What is considered the \'standard\' content of .gitignore file for an iPhone (Xcode) project?

PS: not sure if this needs to be a CW.

3条回答
  •  青春惊慌失措
    2020-12-14 08:31

    You should also exclude xcworkspace and xcuserdata in xcode 4.2. So here is a complete list which one should ignore for iOS projects

    # Exclude the build directory
    build/*
    
    # Exclude temp nibs and swap files
    *~.nib
    *.swp
    
    # Exclude OS X folder attributes
    .DS_Store
    
    # Exclude user-specific XCode 3 and 4 files
    *.mode1
    *.mode1v3
    *.mode2v3
    *.perspective
    *.perspectivev3
    *.pbxuser
    *.xcworkspace
    xcuserdata
    

提交回复
热议问题