Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

arc/nonarc subspecs, what am I doing wrong? #511

Closed
claybridges opened this Issue · 5 comments

4 participants

@claybridges

I want to have arc & nonarc files in the same podspec. I take it subspecs are the way to go, but I can't get there from here. Here's my podspec:


Pod::Spec.new do |s|
  s.name     =  'pubnub-api'
  s.version  =  '3.2'
  s.summary  =  'PubNub makes Real-time Real Easy with a Simple Communications API.'
  s.homepage =  'https://github.com/pubnub/pubnub-api'
  s.author   =  { 'PubNub' => 'hello@pubnub.com' }
  s.source   =  { :git => 'https://github.com/pubnub/pubnub-api.git', :commit => '069ee8526c05bd97d7edd60a89aa161b8c3a9fc4' }
  s.platform = :ios
  # s.license =  'TBD'

  s.subspec 'arc' do |a|
    a.source_files =  'objective-c/3.2/Pubnub/PubNub/{CEPubnub,Cipher,Common,Base64}.{h.m}'
    a.requires_arc = true
  end

  s.subspec 'nonarc' do |na|
    na.source_files =  'objective-c/3.2/Pubnub/PubNub/JSON{,Kit}.{h,m}'
  end
end

Here's the line from the Podfile:

pod 'pubnub-api', :podspec => 'podspecs/pubnub-api/3.2/pubnub-api.podspec'

I only ever get the files/group etc. from the second subspec. Anybody know what's up?

@stephenlb

Hi @claybridges ! We are taking a look at this. This ticket has been open for a while. Have you found a solution yet?

@stephenlb

@claybridges also consider upgrading to the latest 3.3 PubNub API - https://github.com/pubnub/pubnub-api/tree/master/objective-c

@claybridges

@stephenlb my team has upgraded to pubnub-api 3.3, so this is no longer a blocker for us. I'm still curious how to do this, though, and/or what I'm doing wrong.

@fabiopelosin

Specifying arc in the subspec will be supported by v0.15. I'm not sure of what is happening here but you should get an error that indicates that you can't specify arc in subspecs during pod install.

@alloy
Owner

Even though 0.15 will support different ARC settings in subspecs (and could be used as a stopgap solution) this is not how it eventually should be, but the requires_arc attribute should take a file list/pattern: #532.

@alloy alloy closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.