Go to the run script in your xcode and in your shell after the build just add your --dart-define like below. /bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build --dart-define-from-file=env/config.json