diff --git a/platform-darwin/Podfile b/platform-darwin/Podfile index 980650b8..ba6e6a57 100644 --- a/platform-darwin/Podfile +++ b/platform-darwin/Podfile @@ -28,3 +28,14 @@ target 'MasterPassword-macOS' do pod 'KCOrderedAccessorFix' pod 'JRSwizzle' end + +post_install do |installer| + installer.pods_project.targets.each do |target| + if target.name == 'Countly-iOS' || target.name == 'Countly-macOS' + target.build_configurations.each do |config| + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] + config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'COUNTLY_EXCLUDE_IDFA=1' + end + end + end +end