美文网首页
iOS 项目.gitignore文件如何编辑

iOS 项目.gitignore文件如何编辑

作者: yiangdea | 来源:发表于2018-09-13 11:05 被阅读11次

    CocosPods 忽略
    CocosPods管理第三方会生成Podfile、Podfile.lock、Pods文件夹和.xcworkspace;

    • Podfile 依赖配置文件 | 必须上传
    • Podfile.lock 当前使用库的信息 | 可选上传
    • Pods文件夹 第三方缓存目录 | 否
    • .xcworkspace 工作空间 | 可选

    我们项目的.gitignore文件:

    # Xcode
    #
    # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
    
    ## Build generated
    build/
    DerivedData/
    
    ## Various settings
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata/
    
    ## Other
    *.moved-aside
    *.xccheckout
    *.xcscmblueprint
    
    ## Obj-C/Swift specific
    *.hmap
    *.ipa
    *.dSYM.zip
    *.dSYM
    
    ## Playgrounds
    timeline.xctimeline
    playground.xcworkspace
    
    # Swift Package Manager
    #
    # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
    # Packages/
    # Package.pins
    # Package.resolved
    .build/
    
    # CocoaPods
    #
    # We recommend against adding the Pods directory to your .gitignore. However
    # you should judge for yourself, the pros and cons are mentioned at:
    # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
    #
    Pods/
    #
    # Add this line if you want to avoid checking in source code from the Xcode workspace
    *.xcworkspace
    *.xcuserstate
    project.xcworkspace
    xcuserdata
    UserInterfaceState.xcuserstate
    project.xcworkspace/
    xcuserdata/
    UserInterface.xcuserstate
    
    # Carthage
    #
    # Add this line if you want to avoid checking in source code from Carthage dependencies.
    # Carthage/Checkouts
    
    Carthage/Build
    
    # fastlane
    #
    # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
    # screenshots whenever they are needed.
    # For more information about the recommended setup visit:
    # https://docs.fastlane.tools/best-practices/source-control/#source-control
    
    fastlane/report.xml
    fastlane/Preview.html
    fastlane/screenshots/**/*.png
    fastlane/test_output
    
    # Code Injection
    #
    # After new code Injection tools there's a generated folder /iOSInjectionProject
    # https://github.com/johnno1962/injectionforxcode
    
    iOSInjectionProject/
    

    相关文章

      网友评论

          本文标题:iOS 项目.gitignore文件如何编辑

          本文链接:https://www.haomeiwen.com/subject/kmxwgftx.html