Edited at

gitignore メモ

gitignoreメモ

https://github.com/github/gitignore/blob/master/Swift.gitignore

Pods Carthageを管理から外すべき??

https://qiita.com/mono0926/items/636819c42e96a8c4e12d

とりあえず、Carthageは入れる方向で。


Podfileand Podfile.lockは常にバージョン管理下に置かれるべきです。

→公式から https://guides.cocoapods.org/using/using-cocoapods.html


Pods/ はバージョン管理から外すべき?入れるべき?

私は外します。

もしpushしたら

git rm -r --cached Carthage

git rm -r --cached Pods

git add hoge
git commit -m "ここにコミットメッセージ"
git push origin ブランチ

ターミナルでPodを削除

pod deintegrate

# 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

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

!Carthage/Build

# Accio dependency management
Dependencies/
.accio/

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

# Mac
# Macが勝手に作る
.DS_Store
UserInterfaceState.xcuserstate

追加はいつもvscodeで.gitignoreを作成してprojectの直下に置いてgithubにあげてる。