Git ignore file for Xcode projects

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

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

20条回答
  •  不知归路
    2020-11-22 03:40

    You should checkout gitignore.io for Objective-C and Swift.

    Here is the .gitignore file I'm using:

    # Xcode
    .DS_Store
    */build/*
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata
    profile
    *.moved-aside
    DerivedData
    .idea/
    *.hmap
    *.xccheckout
    *.xcworkspace
    !default.xcworkspace
    
    #CocoaPods
    Pods
    

提交回复
热议问题