If macos configuration needs to be regenerated, after regeneration apply updates to avoide bug like https://github.com/flutter/devtools/issues/5189
set buildConfiguration to Release
buildConfiguration
Release
set com.apple.security.app-sandbox to false.
com.apple.security.app-sandbox