# Archive builds (ACTION=install) should always run in release mode.if [[ "$ACTION" == "install" && "$build_mode" != "release" ]]; then EchoError "========================================================================" EchoError "ERROR: Flutter archive builds must be run in Release mode." EchoError "" EchoError "To correct, ensure FLUTTER_BUILD_MODE is set to release or run:" EchoError "flutter build ios --release" EchoError "" EchoError "then re-run Archive from Xcode." EchoError "========================================================================" exit -1fi