Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] No logs shown in console for iOS simulator, only on the cloud #37

Closed
rignaneseleo opened this issue May 11, 2024 · 2 comments
Closed

Comments

@rignaneseleo
Copy link

Hi, I've got the following setup:

Future<void> main() async {
  FlutterBugfender.handleUncaughtErrors(() async {
    WidgetsFlutterBinding.ensureInitialized();

    // Initialize Bugfender
    await _setupBugFender();
    
    ...
    
    runApp(MyApp());
    });
   } 
Future _setupBugFender() async {
  await FlutterBugfender.init(
    kBugfenderKey,
    enableCrashReporting: true, // these are optional, but recommended
    enableUIEventLogging: true,
    enableAndroidLogcatLogging: true,
    printToConsole: true,
  );

  FlutterBugfender.log(">>>>> RUNNING WITH BUGFENDER <<<<<<<<");
}

I don't understand why I don't have anything printed in my local console while I debug on my iOS simulator:

Launching lib/main.dart on iPad Pro (12.9-inch) (6th generation) in debug mode...
Running Xcode build...
Xcode build done.                                           34.9s
[ERROR:flutter/shell/platform/darwin/graphics/FlutterDarwinContextMetalImpeller.mm(42)] Using the Impeller rendering backend.
Debug service listening on ws://127.0.0.1:59030/-g9rx8TC4Hk=/ws
Syncing files to device iPad Pro (12.9-inch) (6th generation)...
[GETX] Instance "NavRoutesController" has been created
[GETX] Instance "NavRoutesController" has been initialized
[GETX] Instance "GetMaterialController" has been created
[GETX] Instance "GetMaterialController" has been initialized

While it prints on the cloud:
image

Flutter doctor:

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.2.1 23C71 darwin-arm64, locale en-US)
    • Flutter version 3.19.5 on channel stable at /Users/leonardorignanese/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (6 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/leonardorignanese/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.10+0-17.0.10b1087.21-11572160)
    • 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.3)
    • 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.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.89.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • iPhone 14 Leo (mobile)                         • 00008110-0018288A0E99401E            • ios            • iOS 17.4 21E217
    • iPad Pro (12.9-inch) (6th generation) (mobile) • B8A40338-7C12-471C-A392-8EF049973F46 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • Chrome (web)                                   • chrome                               • web-javascript • Google Chrome 124.0.6367.119
    ! Error: Browsing on the local area network for iPad di Leonardo. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!
@jgimenez
Copy link
Member

Hi there, are you checking the Xcode console, or the console where you run your flutter commands? I would expect logs to appear in the Xcode console

@jgimenez
Copy link
Member

Closing due to inactivity. If you have any additional information, please feel free to reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants