When building my project I have a lot of warnings from CocoaPods Pods. So other projects that I don't have control of.
What is the suggested way to handle this? I'd prefer to have Xcode only display warnings related to my project. It just gets to be too much if it displays warnings related to projects I don't have control over.
You can search for "inhibit_all_warnings" in your Xcode build settings of the PodBundle in your project-workspace. Set the value to "YES" and it will hide all your Pod file warnings. If you do it to your workspace it will hide all your project warnings also.
Select your project and select your target and show Build Phases . Search the name of the file in which you want to hide, and you should see it listed in the Compile Sources phase. Double-click in the Compiler Flags column for that file and enter -w to turn off all warnings for that file. Hope it will help you.
XcodeProj is a library written in Swift for parsing and working with Xcode projects.
There is two way to get it done:
Build Settings
tabinhibit_all_warnings
flagYES
It'll suppress all the warning related to the pod project. But when you do next pod install
the flag will be reset to NO
.
In your podfile
specify inhibit_all_warnings!
key like following: (This will avoid the inhibit warning flag resetting with each pod install issue. Do a pod install after adding this flag.).
platform :ios, '9.0'
inhibit_all_warnings!
target 'MyApp' do
# Your Pods
end
Reference: Podfile Syntax
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With