Closed4

flutter ios パーミッション解決

MinatoMinato

ios/Podfileに使用する権限を追記する

ios/Podfile
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)',
+      'PERMISSION_LOCATION=1',
+      'PERMISSION_LOCATION_WHENINUSE=0',
+      'PERMISSION_BLUETOOTH=1',
      ]
    end
  end
end

https://pub.dev/documentation/permission_handler/latest/#:~:text=the permission_handler plugin.-,Setup,-While the permissions

このスクラップは1ヶ月前にクローズされました