Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

inhibit_all_warnings adds incorrect flags for Dtrace (.d) files #1510

Closed
PaulTaykalo opened this Issue · 2 comments

4 participants

@PaulTaykalo

Some projects contains not only .m an .h files, but .d files also
When in main Podfile we're setting inhibit_all_warnings! it will automatically add
flags << '-w -Xanalyzer -analyzer-disable-checker'
flags << '-fobjc-arc'
for all files that were specified in podspec.
This is ok for '.m, .mm' files but is definetely not ok for '.d' files.

So suggestion is to check for which files we're adding these flags, and skip ".d" files or add flags for .m, .mm, .c files only .

File were changes is need to be performed:
https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/installer/target_installer/pod_target_installer.rb

As far as I see for now flags are generated for all files those are related for consumer. But somehow there's a need to skip files with .d

EXAMPLE of the fix is here (Sorry, I'm not a rubyist or something)

PaulTaykalo@fa039c1

Issue that relates to this CocoaPods behaviour.
ReactiveCocoa/ReactiveCocoa#866

@PaulTaykalo PaulTaykalo referenced this issue in ReactiveCocoa/ReactiveCocoa
Closed

dtrace command fails #866

@alloy
Owner

Thanks for the feedback and example of the issue.

@fabiopelosin

Closed via 740dfc7.

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