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

Closed
claybridges opened this Issue Sep 10, 2012 · 5 comments

Comments

Projects
None yet
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

This comment has been minimized.

Show comment Hide comment
@stephenlb

stephenlb Sep 15, 2012

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

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

@stephenlb

This comment has been minimized.

Show comment Hide comment
@stephenlb

stephenlb Sep 15, 2012

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

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

@claybridges

This comment has been minimized.

Show comment Hide comment
@claybridges

claybridges Sep 16, 2012

@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.

@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

This comment has been minimized.

Show comment Hide comment
@fabiopelosin

fabiopelosin Sep 17, 2012

Member

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.

Member

fabiopelosin commented Sep 17, 2012

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

This comment has been minimized.

Show comment Hide comment
@alloy

alloy Sep 19, 2012

Member

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.

Member

alloy commented Sep 19, 2012

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 Sep 19, 2012

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment