Skip to content

CocoaPods/CocoaPodsExampleLibrary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CocoaPods Example Library

It can be a bit confusing figuring out the perfect way to set up your library for Cocoapods. We recommend that you:

  1. Create the library in the root of your project like normal.
  2. Create an Xcode project that uses your library and can provide tests.
  3. Use CocoaPods with the :path property in your Podfile to refer to your library.

This means you can work on your library, test it and know that the changes are being propagated to the correct files. Doing it this way means you can keep your dependencies outside of the project, you can edit your files in Xcode ( no pod install to pull in changes. ) and you can be sure the Podspec works exactly as expected for other users.

The official documentation for this is still work-in-progress but can be found on the new guides.cocoapods.org repo. And we have an opinionated repo template for you to get bootstrapped from.