From fc534df7455bb41679f0dd6c8d69aa34c4d501e5 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Wed, 25 Mar 2026 17:16:09 +0800 Subject: [PATCH] Suppress mobile scanner ignored attributes warnings --- macos/Podfile | 9 +++++++++ macos/Podfile.lock | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/macos/Podfile b/macos/Podfile index ff5ddb3b..1b70392b 100644 --- a/macos/Podfile +++ b/macos/Podfile @@ -38,5 +38,14 @@ end post_install do |installer| installer.pods_project.targets.each do |target| flutter_additional_macos_build_settings(target) + next unless target.name == 'mobile_scanner' + + target.build_configurations.each do |config| + other_cflags = config.build_settings['OTHER_CFLAGS'] || '$(inherited)' + unless other_cflags.include?('-Wno-ignored-attributes') + config.build_settings['OTHER_CFLAGS'] = + "#{other_cflags} -Wno-ignored-attributes" + end + end end end diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 18a535e5..cf7f78b9 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -54,6 +54,6 @@ SPEC CHECKSUMS: shared_preferences_foundation: 7036424c3d8ec98dfe75ff1667cb0cd531ec82bb super_native_extensions: c2795d6d9aedf4a79fae25cb6160b71b50549189 -PODFILE CHECKSUM: 54d867c82ac51cbd61b565781b9fada492027009 +PODFILE CHECKSUM: e526b46d773958bf8937e1451d92e3165e690cd4 COCOAPODS: 1.16.2