Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Excluding a subspec within Podfile
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MikeW  
View profile  
 More options Nov 15 2012, 11:09 am
From: MikeW <moop...@gmail.com>
Date: Thu, 15 Nov 2012 08:09:39 -0800 (PST)
Local: Thurs, Nov 15 2012 11:09 am
Subject: Excluding a subspec within Podfile

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Pelosin  
View profile  
 More options Nov 15 2012, 1:58 pm
From: Fabio Pelosin <fabiopelo...@gmail.com>
Date: Thu, 15 Nov 2012 19:58:55 +0100
Local: Thurs, Nov 15 2012 1:58 pm
Subject: Re: Excluding a subspec within Podfile
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »