Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requires_arc = true has no effect when the podspec contains subspecs #364

Closed
jeanregisser opened this issue Jul 1, 2012 · 3 comments
Closed

Comments

@jeanregisser
Copy link
Contributor

Hi,

With CocoaPods 0.6.0, with the following podspec, -fobjc-arc is not set for the source files in the Pods project:

Pod::Spec.new do |s|
  s.name     = 'MySpec'
  ...
  s.platform = :ios
  s.requires_arc = true

  s.subspec 'Core' do |core|
    core.source_files = 'core/src/**/*.{h,m}'
  end

  s.subspec 'SubLib' do |sub|
    sub.source_files = 'sublib/src/**/*.{h,m}'
    sub.dependency 'MySpec/Core'
  end

end

It was working fine with CocoaPods 0.5.1
Is there another way to do that?

Thanks for this great tool!

@alloy
Copy link
Member

alloy commented Jul 2, 2012

Oh that’s unfortunate… The code to handle it is there. Just for reference, could you paste your spec?

@alloy
Copy link
Member

alloy commented Jul 2, 2012

@jeanregisser I have just pushed CocoaPods 0.6.1 and Xcodeproj 0.2.1. Please give it a try.

@jeanregisser
Copy link
Contributor Author

Thanks @alloy and @irrationalfab, it works correctly now.

It's great to be able to use external specs with subspecs reliably now. I can finally get rid of the additional specs repo I was using.

Awesome progress lately!

jzapater pushed a commit to jzapater/CocoaPods that referenced this issue Sep 17, 2013
Update ReactiveCocoa to version 0.6
fabiopelosin added a commit that referenced this issue Oct 25, 2014
Currently the setting is a top level attribute accessor,
in the future it should be supported for subspecs.

Closes #364.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants