Starting iOS app from real device doesn't show console logs - ios

It's about log messages created by the Logger interface like this:
let logger = Logger(subsystem: Bundle.main.bundleIdentifier!, category: "MyCategory");
logger.log(level: .default, "My Message");
Run the code piece above in the viewDidLoad() method of an sample iOS app on a real device. The real device is connecte dvia USB to the Mac.
Starting the Console.app on the Mac, connect to the real device stream
Starting the app via Xcode --> The message appears in the Console
Stop the app in Xcode
Start the app standalone on the real device, remain the device connected by USB with the Mac --> The message do not appear in the Console
Changing the log level from .default to .debug or .info. doesn't have an effect. I'm only be able to see messages in the console when the app gets started by Xcode.

Related

How to check iOS application log on a jailbroken device?

Is there a way to ready the iOS application log of a specific app or the entire system through SSH, similarly to Androids logcat function.?

Connect iOS Device to Mac and Log App Errors

Goal:
Connect iOS device (physical device) to macbook
Use Appium / IntelliJ / or any other software to capture app errors from the device
I run automation tests using simulated devices, however, it's proving to not be as affective as manual testing for I'm getting different results. What I want is to simply connect my device to my macbook, run something to log app errors as I interact with my test device.
My current set up to run automated tests:
Appium
IntelliJ - Using simulated devices (No longer wanting to do)
To view what's going on in the device, you'll need to use Xcode. The easiest way to obtain that is to use the Mac App Store application.
If you're able to build your app there is a lot more debugging you can do, but I'm assuming you're not able to do that based on what you've written and won't provide instruction on that.
Attach device
Launch Xcode
Click Window menu
Click Devices and Simulators
Unlock device
Click Open Console if you're looking to see live activity of the system (this is very noisy and unlikely to be of much use) or View Device Logs to see any crash reports.

Issue reconnecting to periphal device with iPhone (QT)

I have a qt app running on Android and iOS. The Bluetooth part of the code is in c++ and currently works for Android.
Currently on the iOS side I can discover the device and pair to it and connect. However when I go to connect to the device again after closing and reopening app (or restarting the phone) I cannot reconnect to the device.
I save the Devicee UUID that iOS creates for the device (since there is no MAC Address) and I get the error from my QLowEnergyController that says "Remote Device Not Found".
Things I have tried after pairing:
1. Restart app and try connecting.
2. Go into settings and manually connect to the device. Still doesn't find the device.
Are there any specific steps to reconnect to iOS?
I am expecting that the app will connect my iPhone to the device just like in Android.

How can I view iOS 10.x system log?

We are developing an iPhone/iPad app that will run on iOS 10.x. Apparently Apple has done away with the system log and replaced it with "Unified Logging". These devices are NOT "jail broken". How can I view this log either from a Mac / PC or on the iPad itself?
Thank you!
GIJOW should have added this as an answer - upvote his comment:
plug your device into a mac via USB
CMD + Space to open spotlight search, type console and open it (close Console first if it was already opened from a previous session with a simulator)
You will see a list of Devices for which real-time logs will be displayed

Remote debugging for Flash CS6 and AIR iOS?

I'm using Flash CS6 and I would like to debug an AIR iOS app on my device but I can't establish a connection. I have my iPod Touch 5G connected via USB, checked "allow remote debugging", published the .ipa for "device debugging" and started the AS3 debugging session from the debug panel.
All I get is a window on my iPod that says enter HOST or IP. I tried both but the window comes up every time again and again without connecting. What step do I miss?
Ensure your computer and iPod are connected to the same wifi network.
Delete the app from your device and watch it as your app is installed to make sure that Flash is actually installing a new binary. (mine sometimes doesn't).
Try unplugging your phone, refresh device list, then re-plugging it in and refreshing the device list before starting the debug.
Try doing Debug menu > Debug Movie > On Device via USB > select your device. (to do this the .fla file must be the active file within Flash.) Note I'm using Flash Pro CC 2014 though, not CS6.

Resources