Repository: flutter
Issue: Log messages showing in Android but not in IOS
Labels: platform-ios,tool,has reproducible steps,team-tool,found in release: 3.19,found in release: 3.22

### Steps to reproduce

Hi,
Im trying to debug my app behavior, and noticed that most of the console output that is present while debugging in Android dissapears when debugging for IOS.
As an example, I created a new demo app with 'flutter create testapp' and added Firebase to it.

The main function looks like this:

```
Future<void> main() async {
  WidgetsBinding widgetsBinding = WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );
  runApp(const MyApp());
}
```

The Android output when I start debug on Android emulator is:

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
```console
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Connecting to VM Service at ws://127.0.0.1:55129/MzYCr-LQQxQ=/ws
D/CompatibilityChangeReporter( 6354): Compat change id reported: 183155436; UID 10193; state: ENABLED
I/FirebaseApp( 6354): Device unlocked: initializing all Firebase APIs for app [DEFAULT]
```

The IOS output when I start the debug on IOS Simulatir is:

```console
Launching lib/main.dart on iPhone 15 Pro in debug mode...
Xcode build done.                                            7,0s
[ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
Connecting to VM Service at ws://127.0.0.1:55694/HrbNCubDznU=/ws
```

Where did the I/FirebaseApp line go?

Note: all print(), debugPrint() and debugger.log() appears both in Android and IOS

### Expected results

Show the debug output in the console under IOS

### Actual results

No debug output in the console for IOS, only for Android

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.4.1 23E224 darwin-arm64, locale es-AR)
    • Flutter version 3.19.4 on channel stable at /Users/pablo/Proyectos/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68bfaea224 (9 days ago), 2024-03-20 15:36:31 -0700
    • Engine revision a5c24f538d
    • Dart version 3.3.2
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/pablo/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.85.20240301

[✓] Connected device (5 available)
    • moto g 8 plus (mobile)      • ZY22764PJC                           • android-arm64  • Android 10 (API 29)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 14 (API 34) (emulator)
    • iPhone 15 Pro (mobile)      • 2806FE34-02F7-48C8-BC64-E40720F913B7 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 123.0.6312.87

[✓] Network resources
    • All expected network resources are available.

• No issues found!
```

</details>