[英]Git ignore file for Xcode 4 projects
Here are git ignore files for basicly every language including Xcode : Github - git ignore 以下是git ignore文件,基本上包括Xcode: Github - git ignore
For me it is working like a charm. 对我来说,它就像一个魅力。 Here is the content of the Objective-C.gitignore 以下是Objective-C.gitignore的内容
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData
This is what we use: 这就是我们使用的:
#xcode Noise
build/*
*.pbxuser
*.mode2v3
*.mode1v3
*.xcworkspace
xcuserdata
# OSX Noise
.DS_Store
profile
*~
*.lock
*.DS_Store
*.swp
*.out
Existing answers are good. 现有答案很好。 I just want to leave a note for people who are using CocoaPods
to manage libraries. 我只想给那些使用CocoaPods
来管理库的人CocoaPods
。 Besides the xcworkspace
generated by CocoaPods, you should also ignore Pods/
directory: 除了xcworkspace
生成的xcworkspace之外,你还应该忽略Pods/
目录:
Pods/*
every developer should do pod install
on their own machine separately. 每个开发人员都应该分别在自己的机器上进行pod install
。 otherwise, they may face many environment issues. 否则,他们可能面临许多环境问题。
I've been using the solution from the question you linked with a few changes. 我一直在使用您通过一些更改链接的问题的解决方案。 I think it has a really nice solution for ignoring unnecessary project files 我认为它有一个非常好的解决方案来忽略不必要的项目文件
#OS junk files
[Tt]humbs.db
*.DS_Store
*.bak*
#Xcode files
#This ignores everything inside a *.xcodeproj except the project.pbxproj
*.xcodeproj/
!*.xcodeproj/project.pbxproj
*.log
xcuserdata
#Project files
[Bb]uild/
#Version control files
.svn
*.orig
I normally ignore the following 我通常忽略以下内容
And some hidden files like 还有一些隐藏文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.