Git ignore file for Xcode projects

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

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

20条回答
  •  一向
    一向 (楼主)
    2020-11-22 03:34

    Most of the answers are from the Xcode 4-5 era. I recommend an ignore file in a modern style.

    # Xcode Project
    **/*.xcodeproj/xcuserdata/
    **/*.xcworkspace/xcuserdata/
    **/*.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
    **/*.xcworkspace/xcshareddata/*.xccheckout
    **/*.xcworkspace/xcshareddata/*.xcscmblueprint
    **/*.playground/**/timeline.xctimeline
    .idea/
    
    # Build
    build/
    DerivedData/
    *.ipa
    
    # CocoaPods
    Pods/
    
    # fastlane
    fastlane/report.xml
    fastlane/Preview.html
    fastlane/screenshots
    fastlane/test_output
    fastlane/sign&cert
    
    # CSV
    *.orig
    .svn
    
    # Other
    *~
    .DS_Store
    *.swp
    *.save
    ._*
    *.bak
    

    Keep it updated from: https://github.com/BB9z/iOS-Project-Template/blob/master/.gitignore

提交回复
热议问题