2016-05-27 16 views
1

Ich habe Fragen darüber, was in einer Android-App zu ignorieren ist, und Fragen zum Ignorieren von Cocoapoden. Ich frage jedoch generell nach einem iOS-Projekt.Welche Dateien/Ordner sollte ich in einem Git-Repository einer iOS-App ignorieren?

Ich habe eine iOS-App, die von AdMob bereitgestellte Anzeigen anzeigt und Firebase verwendet, um die Analyse meiner App anzuzeigen. Und es verwendet ein paar Cocoapoden.

Aus einer meiner vorherigen Fragen habe ich erfahren, dass meine Anzeigenblock-ID eine private Sache ist. Deshalb habe ich meine Anzeigenblock-ID in einer separaten Datei und ignoriert es:

// Secret Stuff.swift 
let adUnitId = "dianfkebsfiubugb" 

denke ich auf diese Weise Leute werden nie meine Anzeigenblock-ID kennen.

Aber was ist mit anderen Sachen? Enthalten die von cocoapods erzeugten Dateien einige meiner privaten Informationen? Beinhaltet die Datei info.plist auch meine privaten Sachen? Als ich Firebase in meine App einfügte, habe ich eine GoogleService-Info.plist heruntergeladen. Sollte ich es auch ignorieren? Welche Dinge sollte ich ignorieren?

Private Informationen enthält

  • Meine E-Mail
  • Heimatadresse
  • Meine Telefonnummer
  • Ad Unit ID
  • Meine Kennwörter
  • Andere Dinge, die, wenn offenbart wird, wird negative Auswirkungen auf mein Leben haben, wie Geldverlust/Einkommenseinbußen oder Dang er. Wenn ich zum Beispiel meine Anzeigenblock-ID offenlege, werden Nutzer Werbung spamten und mein Konto wird gesperrt.

Private Information nicht enthalten:

  • Mein richtiger Name
  • Mein Alter
+0

Concer Ning CocoaPods, ich empfehle, diese Seite zu lesen, in Teil "_Sollte ich das Pods-Verzeichnis in die Quellcodeverwaltung überprüfen? _" - https://guides.cocoapods.org/using/using-cocoapods.html – Olivier

Antwort

10

Ich würde vorschlagen, dass Sie einen Blick auf das, was GitHub verwendet für, wenn die Menschen schaffen Repos. Sie können alle ihre Beispiele here finden. Diese hier wird von besonderem Interesse für Sie:

Hinzufügen der Vorlagen unter einhüllen die Links in der Zukunft zu brechen.

Für Xcode-Projekte im Allgemeinen:

# 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 

Für Objective-C Projekte:

# 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 
*.xcuserstate 

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

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

# 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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 

fastlane/report.xml 
fastlane/screenshots 

#Code Injection 
# 
# After new code Injection tools there's a generated folder /iOSInjectionProject 
# https://github.com/johnno1962/injectionforxcode 

iOSInjectionProject/ 

Für Swift Projekte:

# 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 
*.xcuserstate 

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

# 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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 

fastlane/report.xml 
fastlane/Preview.html 
fastlane/screenshots 
fastlane/test_output