CocoaPods is a dependency manager for Cocoa projects. It allows installing and updating libraries in Xcode projects. To use CocoaPods, install the gem, create a Podfile listing dependencies, run pod install, and open the generated Xcode workspace. Libraries can be declared in a Podspec file which defines metadata and installation instructions. The Podspec and license must be in the root of the library repository.