From 5b2da48ffe53f002a66e1dd116ef04fe54f56666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chudziak?= Date: Tue, 11 Oct 2022 11:58:02 +0200 Subject: [PATCH] fix(ios): add support for use_frameworks (#201) --- example/ios/Podfile | 1 + react-native-geolocation.podspec | 1 + 2 files changed, 2 insertions(+) diff --git a/example/ios/Podfile b/example/ios/Podfile index 8275ac1..adf23db 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -17,6 +17,7 @@ target 'GeolocationExample' do # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => flags[:hermes_enabled], :fabric_enabled => flags[:fabric_enabled], + :flipper_configuration => FlipperConfiguration.disabled, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." ) diff --git a/react-native-geolocation.podspec b/react-native-geolocation.podspec index b4deb09..a319e73 100644 --- a/react-native-geolocation.podspec +++ b/react-native-geolocation.podspec @@ -18,6 +18,7 @@ Pod::Spec.new do |s| s.source_files = "ios/**/*.{h,m,mm}" s.dependency 'React-Core' + s.frameworks = 'CoreLocation' if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"