ios - Xcode 6 gitignore 文件应该包括什么?

标签 ios iphone xcode git

对于 Xcode 6,典型的 .gitignore 应该包括什么?

有关 Xcode 5 中引入的 xccheckout 的信息,请参阅 here

最佳答案

1)

最简单的答案是我的看起来像这样:

# Xcode
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
# Pods - for those of you who use CocoaPods
Pods

我认为这与 GitHub 默认为其所有存储库设置的 .gitignore 相同。

2)

另一个答案是有一个 website called "gitignore.io" , 它根据 https://github.com/github/gitignore 中的 .gitignore 模板生成文件.

关于ios - Xcode 6 gitignore 文件应该包括什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18939421/

相关文章:

ios - React Native 只是重新初始化 iOS 或 Android 项目

ios - Swift 将 TableView 单元格中的数据传递给 View Controller

ios - JSON解析后,-viewForAnnotation在MKMapView上仅显示一个注解

iphone - NSString 值划掉 iPhone

iphone - drawRect 在 iPhone(模拟器)中反转 imageView

iphone - 如何从 iPhone 中的字符串设置 UIImageView 值?

ios - 如何让带有嵌入式 UITableView 的 ContainerView 随着 tableView 单元格数量的变化而更新高度约束

ios - 本地化字符串仅通过 Interface Builder 应用翻译

ios - XCode IBAction 和 IBOutlets 错误

ios - Apple Mach-O Librarian 编译 CocoaPods 时出错