From 6063c831cbb798730d69b295d725f6ce36e18ec1 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Thu, 20 May 2021 10:15:32 -0700 Subject: [PATCH] [wifi_info_flutter] Ignore Reachability pointer to int cast warning (#3947) Suppress Reachability dependency warning in iOS example app. --- .../wifi_info_flutter/wifi_info_flutter/example/ios/Podfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Podfile b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Podfile index f7d6a5e68c3a..07a4e08abf54 100644 --- a/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Podfile +++ b/packages/wifi_info_flutter/wifi_info_flutter/example/ios/Podfile @@ -33,6 +33,12 @@ end post_install do |installer| installer.pods_project.targets.each do |target| + # Work around https://github.com/flutter/flutter/issues/82964. + if target.name == 'Reachability' + target.build_configurations.each do |config| + config.build_settings['WARNING_CFLAGS'] = '-Wno-pointer-to-int-cast' + end + end flutter_additional_ios_build_settings(target) end end