0

I'm trying to not see this warning in the Atlas pod since its not my library.

'UIMutableUserNotificationCategory' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationCategory

I am using

inhibit_all_warnings!

in my pod file.

I also tried pod 'Atlas', '1.1.5', :inhibit_warnings => true which didn't work.

I'm thought if I change the platform from iOS 9 to iOS like this

platform :ios, '9.0'

It would no longer show the warning.

update

-Wno-deprecated worked when I put it in Atlas build settings under complier flags -> c++ flags.

Any way to do this in the podfile? so a pod install will not break it.

user1898829
  • 3,437
  • 6
  • 34
  • 62

2 Answers2

0

Add to your podfile the following statement, and then run pod install

pod 'YourPodToIgnore', :inhibit_warnings => true
Sagar D
  • 2,588
  • 1
  • 18
  • 31
0

Any way to do this in the podfile? so a pod install will not break it.

In this way you can set it the build_settings for every target:

post_install do |installer|
  installer.pods_project.targets.each do |target|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings['OTHER_CFLAGS'] = "-Wno-deprecated"
    end
  end
end
Francesco Deliro
  • 3,899
  • 2
  • 19
  • 24