flutter release/production app view ios logs - ios

How can i view the logs for an app that runs in release mode (flutter run --release) on iOS (14.5) physical device? I tried logging with print, debugPrint nothing gets printed in the OS X console app (/System/Applications/Utilities/Console.app). i also tried in the terminal the 'flutter logs -v' command, nothing no logs or errors running this command.

You could use sentry.io, which lets you track errors and performance. They have an SDK for flutter and installing/implementing instructions to get started, once you setup a project.
Sentry is open-source and has paid options as well.
I don't know how you have built your backend, but if you use firebase you can use their crashlytics solution.

Related

Flutter iOS Developing On a Physical Device --host-vmservice-port message

I'm trying to develop my flutter app with a physical (iOS) device plugged in, to access hot reload and hot restart. (via flutter run)
I am able to run the app with my device with flutter run however, I get the logs:
If you do NOT see the Flutter application running, it might have crashed. The device logs (e.g. from adb or XCode) might have more details.
If you do see the Flutter application running on the device, try re-running with --host-vmservice-port to use a specific port known to be available.
This prohibits me from accessing the developer tools in the console.
Is there a way to find the --host-vmservice-port of the physical device?
Found out that this was because my system user didn't have read/write permissions for the /flutter/bin/cache/artifacts/usbmuxd/iproxy file.
Enabled it following this, and now I'm able to successfully debug and hot reload with a physical device ✔️

How to get logs in an ios flutter app running on a physical device?

I use logger to output information on the comand line. To access the logs remotely I use AppSpector. This works fine while my iPhone is connected to my mac. In this case I can see the log message on the terminal anyways. When sharing the app via Test Flight I only can see a few log messages from plugins but no message from the flutter logger.

ionic cordova run ios - nothing happens

I'm trying to deploy my Ionic app to an iPhone by running either of these commands:
ionic cordova run ios
ionic cordova run ios --device
The console displays the following text:
[OK] Your app has been deployed.
Did you know you can live-reload changes from your app with --livereload?
If we look at the console output everything seems to be fine, but my iPhone doesn't detect anything and the application doesn't run. I managed to get it on my phone by opening the workspace file inside the platforms/ios and running it with Xcode, but that's a pretty tedious process, and I'm sure that's not the way to go, as it doesn't support livereload.
Also, I tried to start a new project and I'm having the same issue, so I guess it's not any plugin's fault.
Thanks in advance for your answers.
When you run the app from Xcode, does Xcode give you any more error messages in its output window? This may be a signing issue.
same error here from console.
with --verbose
get this message
registerShutdownFunction.process.exit/normal shutdown

Why does Fabric mac app opens automatically when project is running?

As part of fabric integration I have installed Fabric mac app,
I found that whenever I run the project(I am running iOS app through XCode), the Fabric app also gets launched automatically,
My Questions are:
Why it automatically launches when running project ?
Is there a way I can stop this happening ?
FYI: The same happens even when the app is running in simulator.
Mike from Fabric here. It's an odd behavior that you're seeing and is most likely due to an old version of the Run Script. Years ago, the run script build phase required the Fabric app to be present in order to handle the actual uploading of the dSYMs. We would move the dSYMs during the build of the app to a location that the Fabric app would then asynchronously upload them. That behavior was changed a long way back, but it's possible a new version never was included. The current version is: Fabric.framework/run 1.6.2 (205)
I'd check the version by running ./run -v from the project and update your Fabric and Crashlytics frameworks.
You can also remove Fabric.app completely from your system and switch to using CocoaPods or manual installation instructions. It hasn't been required to use for a couple of years.

Cordova deploy app on iOS device

I have a app that runs in the iOS-simulator. The app is compiled with cordova 3.4. After that, I can run the app via shell by calling "cordova run iOS" as well as open the project in xCode and press the play button. Both works.
I attempted to put the app on my iOS-device (iPhone-5s, iPad-Retina). But that does work neither with console nor with xCode.
When I try to run the app on the console by "start iOS" the console freezes before the app is installed on the device. I don't get any error logs. It tried that a few times, and sometimes the app is installed, but the console freezes.
Trying to run the app with xCode I get those errors and issues:
I have the current versions of iOS, xCode and MacOS as well as a developer ID, that is requested by the cordova-console when I try to start the app on a real device. The device was set to a working-group of my apple-developer account, too. That shouldn't cause the problems.
The build-location was set to unique and xcode-default. That doesn't change anything.

Resources