A good example is ShareKit:
-> ShareKit (2.0)
Drop in sharing features for all iPhone and iPad apps.
- Homepage: http://getsharekit.com/
- Source: https://github.com/ShareKit/ShareKit.git
- Versions: 2.0 [master repo]
- Pushed: 27 days ago
- Author: ShareKit Community
- License: MIT
- Platform: iOS
- Watchers: 1136
- Forks: 401
- Sub specs:
- ShareKit/Evernote (2.0)
- ShareKit/Facebook (2.0)
- ShareKit/Flickr (2.0)
- ShareKit/Foursquare (2.0)
- ShareKit/GoogleReader (2.0)
- ShareKit/Instapaper (2.0)
- ShareKit/LinkedIn (2.0)
- ShareKit/Pinboard (2.0)
- ShareKit/ReadItLater (2.0)
- ShareKit/Tumblr (2.0)
- ShareKit/Twitter (2.0)
- ShareKit/Vkontakte (2.0)
If you want the whole library you do:
pod 'ShareKit'
Instead if you want to activate only some components you do:
pod 'ShareKit/Evernote'
pod 'ShareKit/Facebook'
Btw the podspec should not include the dummy classes, those should belong only to your test project. If you must, there is also the alternative of creating a subspec which depends on all the other except the one of the dummies and use the `preferred_dependency` (see RestKit podspec).
On 15/nov/2012, at 17:09, MikeW <moop...@gmail.com> wrote:
> Hi can anyone tell me if it is possible to exclude a subspec from within a Podfile? For example I have a utilities pod and have a subspec defining the dummy classes used for testing. I dont want to include the dummy files in my main app target and would like to exclude them at the podfile level.
> Any guidance would be greatly appreciated thanks