From fdaf32006cba339ee3b931bc34ee9ba5ed24ce43 Mon Sep 17 00:00:00 2001 From: Grisha Date: Mon, 6 Dec 2021 23:36:48 +0500 Subject: [PATCH] Add location permission to Podfile for permission_handler macros. --- example/ios/Podfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/example/ios/Podfile b/example/ios/Podfile index 9411102..3883911 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -37,5 +37,12 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_ios_build_settings(target) + target.build_configurations.each do |config| + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ + '$(inherited)', + ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse] + 'PERMISSION_LOCATION=1' + ] + end end end