Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

:inhibit_warnings on a Per Pod basis does not get inherited in nested targets #1032

Closed
kcharwood opened this Issue · 11 comments

2 participants

@kcharwood

I have a Podfile that looks like the following:

...
pod 'MWFeedParser', '0.0.1', :inhibit_warnings => true
target :'Tests' do
...
end
...

The test target inherits that pod, but the inhibit_warnings flag does not come along. Is this a bug, or is there another way to declare this?

@supermarin
Collaborator

@kcharwood I'll consider this a bug, although from my remembering this should work.

Will test that out tomorrow, thanks for the report

@kcharwood

Thanks. I'm running 0.19.1 for reference.

I am also doing link_with my example instead of target names, so I have generic pod libraries, and link them directly with my targets through link_with.

@kcharwood

A more complete example

target :'Base' do
link_with ['CustomTarget1']
pod 'MWFeedParser', '0.0.1', :inhibit_warnings => true

target :'Tests' do
link_with ['CustomTarget2']
....
end
end

@supermarin
Collaborator

Oh... that might be the issue.

Could you please try removing link_with and using the name as the target name?
Just to confirm that generates the bug

@supermarin supermarin was assigned
@kcharwood

Umm that's actually complicated in this specific project, as I have about 30 pods and 10 targets :)

I'll try and make a smaller example...

@supermarin
Collaborator

sure, thanks

@kcharwood

Actually using target seems to have the same behavior:

If I use the podfile below:

platform :ios, :deployment_target => '5.0'

target :'podbugtest' do
pod 'MWFeedParser', '0.0.1', :inhibit_warnings => true
  target :'podbugtest2' do
    pod 'AFNetworking', '1.2.1'
  end
end

When I build podbutest, I get no warnings. When I build podbugtest2, I get warnings from MWFeedParser.

@kcharwood

@mneorr Ever get a chance to take a look at this?

@supermarin
Collaborator

@kcharwood sorry for the delay. Fixed here CocoaPods/Core@13f9004

could you please confirm it works with bleeding edge Core? feel free to reopen if it doesn't

@supermarin supermarin closed this
@kcharwood

Looks good here! Ship it :)

Thanks again.

@supermarin
Collaborator

:shipit:

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.