iOS .gitignore Pod

mac2022-06-30  26

一:

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

二:

.gitignore

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

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

 

三:不使用Pods情况

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

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

# Icon must end with two \rIcon

# 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.AppleDesktopNetwork Trash FolderTemporary Items.apdisk

### Swift #### Xcode## gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generatedbuild/DerivedData/

## Various settings*.pbxuser!default.pbxuser*.mode1v3!default.mode1v3*.mode2v3!default.mode2v3*.perspectivev3!default.perspectivev3*.pbxproj!default.pbxprojxcuserdata/

## Other*.moved-aside*.xccheckout*.xcscmblueprint

## Obj-C/Swift specific*.hmap*.ipa*.dSYM.zip*.dSYM

## Playgroundstimeline.xctimelineplayground.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.xmlfastlane/Preview.htmlfastlane/screenshotsfastlane/test_output

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

转载于:https://www.cnblogs.com/code-Officer/p/11284175.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)