Reputation: 16089
I have an iOS project that uses CocoaPods for dependency management. One of the pods I use implements a certain class that is marked as deprecated. This produces a warning:
Implementing deprecated class
Is there a compiler flag or something that will let me suppress this warning? If it matters, the class is both declared and implemented in Objective-C files.
Upvotes: 0
Views: 497
Reputation: 21808
In your Podfile, add the inhibit_warnings
flag:
pod 'ThePod', :inhibit_warnings => true
where ThePod
is the name of the pod that is throwing the warning. Then run pod install
to update your project.
Upvotes: 2