Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Inhibit all warnings option in Xcode project doesn't hide warning when building

  1. Cocoapods inhibit_all_warnings! doesn't set the Pods project "Inhibit all warnings" to "Yes"

  2. Xcode still displays pods warning after settings Pods project and individual pods "Inhibit all warnings" option to "Yes"

Cocoapods version: 0.39.0 Xcode version: 7.2

My pod is here:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

# ignore all warnings from all pods
inhibit_all_warnings!

pod 'SnapKit', '~> 0.15.0'
pod 'Crashlytics'
pod 'YLGIFImage'
pod 'Fabric'
pod "AFNetworking", "~> 2.0"
pod 'SDWebImage', '~>3.7'

# Changes build active architecture only
post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
    end
  end
end
like image 770
Mikael Avatar asked Jan 18 '16 08:01

Mikael


People also ask

How do I hide warnings in Xcode?

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.


1 Answers

Check for 'suppress warnings' in your build settings.

like image 54
XiOS Avatar answered Nov 19 '22 15:11

XiOS