• 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

  • 相关阅读:
    pip命令提示unknow or unsupported command install解决方法
    SSH登录慢解方案
    python/shell脚本报异常^M: bad interpreter: No such file or directory
    MySQL中自增ID起始值修改方法
    Centos给文件设置了777权限仍不能访问解决方案
    CentOS7下安装mysql5.7
    CentOS7下使用yum安装MariaDB
    sublime text 3启动报错"swallow_startup_errors"解决方法
    一个清除数组的方法在 Kotlin、Java、C#和Nim上的性能测试
    国外立交桥设计参考资料
  • 原文地址:https://www.cnblogs.com/code-Officer/p/11284175.html
Copyright © 2020-2023  润新知