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
inhibit_all_warnings!
not work for header files in CocoaPods v1.6.0.beta.2
#8219
Comments
Probably related to #6401 /cc @guillaumealgis |
Hi @Whirlwind, thank you for taking the time to test the beta and report this :) Are you using |
I do not use the My project is too large and it could not be shared. : ( |
@Whirlwind is sharing your Podfile a possibility though? I think that would help me reproduce the issue and understand what is wrong. Also, couple more questions:
Thank your for your time! |
@Whirlwind libextobjc being one of the Pods I tested while working on this patch I'm surprised it doesn't work. I tested just now with a minimal project with the following Podfile, and warnings are silenced as expected :
Since you cannot reproduce either with a fresh project, I'm thinking this a cache somewhere in your Xcode's internals not being cleared. Did you try closing Xcode, fully removing If you're still getting the warnings, would you mind copying the content of the Thank you for your help! |
And thank you @guillaumealgis for the follow up! |
ping @Whirlwind |
I still get these warning (treat as error) from the |
@Whirlwind can you please share the |
I check very many test files, and I found that |
Thank you for the follow up @Whirlwind. The 3 syntaxes you listed should work as expected on the 1.6.0 beta. What you're observing is not a normal behavior. Unfortunately, without a sample project reproducing the issue or your Thank you! |
Still need sample here. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
i have same issues。
|
I am seeing the same issue when upgrading from 1.5.3 to 1.6.1. It only happens when using Xcode 10.2. You can see the issue on this PR for the WordPress iOS app. From the build log:
Here are the contents of
This is just one example. I am seeing warnings from several pods. A similar issue is described in launchdarkly/ios-client-sdk#167. |
If you can narrow it down to a small sample project that would be super helpful! It's difficult to try to dig through issues & PRs from other projects to figure out what we need to do to reproduce the bug, and self-contained example project really help in narrowing down what the bug might be |
I still haven't been able to reproduce this in a sample project but I have learned a little more so sharing here. The warnings are only appearing on our test target, which does not directly depend on the pod. Here is a simplified version of the
As expected from #6401, WordPress has However, since WordPressTest does not directly depend on As some confirmation, if I change the
Should the |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍 |
Just in case anyone else has this issue, I found that this workaround worked for me: #209 (comment) I edited the snippet a bit as it wasn't working for my cocoapods version as it was. I ended up with:
Hope this helps someone! 😄 |
So has this question been resolved? |
I have a project with CocoaPods v1.5.3, and everything is OK. I use the
inhibit_all_warnings!
in my Podfile. There are some warnings in my project and development pods, and there is not any warning in the Pods group.I upgrade the CocoaPods to v1.6.0.beta.2, there are too many warnings:
-Wnullability-completeness
: many completeness nullability warnings from the Pods will show in my project.-Wdocument-comments
: many document params warning in the header files from the Pods will show in my project.-Wstrict-prototypes
: many interface method with block paramter have this warning in the Pods. likethis block declaration is not a prototype
.These warnings are in the header files from the Pods, and show in my project. Because my project set
treat warning as error
, it will cause too many error when I build.The text was updated successfully, but these errors were encountered: