陈斌彬的技术博客

Stay foolish,stay hungry

iOS 开发的 .gitgnore 配置

开发 XCode 项目的时候,很多中间生成的临时文件并不需要加入到版本控制当中,所以记录下 XCode 需要用到的 .gitignore文件。

出处:https://github.com/github/gitignore/blob/master/Objective-C.gitignore

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/