-
-
Save carlosypunto/3ca647a98c0143fe488a42dc3e4caf27 to your computer and use it in GitHub Desktop.
Sample Podfile for silencing warnings for CocoaPods dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncomment the next line to define a global platform for your project | |
# platform :ios, '9.0' | |
target '%TargetName%' do | |
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks | |
use_frameworks! | |
# Pods for %TargetName% | |
# pod 'FBSDKCoreKit' | |
end | |
# Silence warnings by turning them off from the Build Settings | |
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
shamelist = ['FBSDKCoreKit', 'Bolts'] | |
if shamelist.include? target.name | |
target.build_configurations.each do |config| | |
config.build_settings['CLANG_WARN_STRICT_PROTOTYPES'] = 'NO' | |
config.build_settings['CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF'] = 'NO' | |
config.build_settings['CLANG_WARN_UNGUARDED_AVAILABILITY'] = 'NO' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment