Sobes.tech
Junior

Wo speichern Sie die CocoaPods-Bibliotheken in Ihrem Projekt?

sobes.tech KI

Antwort von AI

In der Regel befindet sich im Verzeichnis Pods, das nach der ersten Installation der Abhängigkeiten (pod install) automatisch im Stammverzeichnis des Projekts erstellt wird.

Beispiel für die Struktur:

YourProject/
├── YourProject.xcodeproj/
├── YourProject/
├── Podfile
├── Podfile.lock
└── Pods/  // Hier werden alle installierten Bibliotheken gespeichert
    ├── Headers/
    ├── Local Podspecs/
    ├── Manifest.lock
    ├── Pods.xcodeproj  // CocoaPods-Projekt mit allen Bibliotheken
    ├── <Library1>/
    ├── <Library2>/
    └── ...

Das Verzeichnis Pods wird in der Regel in .gitignore aufgenommen, um seine Änderungen im Versionskontrollsystem nicht zu verfolgen, da es leicht mit pod install reproduziert werden kann.