zoukankan      html  css  js  c++  java
  • iOS .gitignore Pod

    一:

    # Xcode
    #
    # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
    # Mac OS X Finder and whatnot
    .DS_Store
    ## Build generated
    build/
    DerivedData/
    ## Various settings
    *.pbxuser
    !default.pbxuser
    *.mode1v3
    !default.mode1v3
    *.mode2v3
    !default.mode2v3
    *.perspectivev3
    !default.perspectivev3
    xcuserdata/
    ## Other
    *.moved-aside
    *.xcuserstate
    *.xccheckout
    ## Obj-C/Swift specific
    *.hmap
    *.ipa
    *.dSYM.zip
    *.dSYM
    #CocoaPods
    Pods/

    二:

    .gitignore

    创建了.gitignore,打开xcode操作之后,.xcscheme、xcschememanagement.plist...之类的几个文件又出来了。
    解决方法:

    cd 到工程目录 ( 当前目录下应该有.git 、 .gitignore)
    git rm --cached *.xcuserstate
    git rm --cached [要忽略的文件]

    三:不使用Pods情况


    # Created by https://www.gitignore.io/api/swift,macos

    ### macOS ###
    *.DS_Store
    .AppleDouble
    .LSOverride

    # Icon must end with two
    Icon

    # Thumbnails
    ._*

    # Files that might appear in the root of a volume
    .DocumentRevisions-V100
    .fseventsd
    .Spotlight-V100
    .TemporaryItems
    .Trashes
    .VolumeIcon.icns
    .com.apple.timemachine.donotpresent

    # Directories potentially created on remote AFP share
    .AppleDB
    .AppleDesktop
    Network Trash Folder
    Temporary Items
    .apdisk

    ### Swift ###
    # 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
    *.pbxproj
    !default.pbxproj
    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
    .build/

    # CocoaPods - Refactored to standalone file

    # Carthage - Refactored to standalone file

    # 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
    fastlane/test_output


    # End of https://www.gitignore.io/api/swift,macos

  • 相关阅读:
    1020 Tree Traversals
    1021 Deepest Root
    1022 Digital Library
    1023 Have Fun with Numbers
    1024 Palindromic Number
    1025 PAT Ranking
    1026 Table Tennis
    面向对象知识点梳理篇一
    面向对象知识点梳理篇二
    logging模块
  • 原文地址:https://www.cnblogs.com/code-Officer/p/11284175.html
Copyright © 2011-2022 走看看