Can I get console logs from my iPhone app testers? - iphone

I am testing my iPhone app with some people who install it through iTunes together with the mobile provision file that I give them. Apple has good instructions for how to get crash logs from these people, but is it also possible to get console logs from their devices? I do not have physical access to these people, otherwise I could connect their device to my computer and see the console log in Organizer. I would like to give them instructions to get me their console logs, but there doesn't seem to be a way?

Apple's iPhone Configuration Utility (available at http://www.apple.com/support/iphone/enterprise/ ) for both Mac and PC allows your users to capture log information and send it to you.

Use the iOS Console Kit from here

Related

How to view logs from iPhone?

I have place several NSLog() in my iOS application, is it possible to see all the logs later on my Mac that was generated when the app ran on iPhone handset even when iPhone was not connected with Mac.
Thanks
No. You can however redirect NSLog to a file, using something like this: http://blog.coriolis.ch/2009/01/09/redirect-nslog-to-a-file-on-the-iphone/
Then you can access the file via Xcode, or upload it with your app. File usage and privacy issues apply.
Keep in mind that NSLog is supposed to be turned off in published apps, so you may want to use a different logging app. A number of NSLog alternatives are available.
Unfortunately this is not possible.
The only thing that you can get is a Crash Log.
If you need a better logging system, I suggest to take a look to CocoaLumberjack, a very powerful logging framework that gives you the opportunity to save log in files and, eventually, send them to a server.
You also have many different levels like: log info, log error, log warning, etc...
You can view crash logs from your iPhone in the Organizer.
If you want to view your own log statements, you could consider TestFlight ( http://testflightapp.com ). They offer an SDK which includes features for remote logging.
I'm fairly certain that's not possible. The device needs to be connected to the Mac in order to run in Xcode's debug mode, and you need to be in debug mode to view the console, which contains your NSLogs.
There is a crash log for every crash that occurs on the phone, which is readable after connecting to your mac. These NSLog's don't appear in this log nor do they appear anywhere else in a (semi) permanent manner.
It's possible using custom macros and a custom class which will write each message in the documents directory in a file.
If the file sharing is enabled in the app you can later download them in iTunes.
Seeing the logs in mac might not be possible. But you can send the log to testflight using TFLog(). But you will need to distribute your app through testflightapp. And integrate the sdk. I think that is what you are looking for. try out - testflightapp.com

iOS simulate Application and log events

I want to install and simulate iOS applications and find their malware intentions. See if connects to an IP address, downloads something, API call logs and soo on... kind of everything it does on the system. Does iOS Simulator log this events, or is there any online project that does that. If not then I should do it from scratch, do you have any advice how to do this? I only have the application file, not the entire Xcode project.
ALL i have is a bunch of applications(not the projects) that i have to test. All i want is to run them and log their actions in an automated way. Just like running a windows application on a virtual machine and log api trace, internet connections, memory, registry, disk actions... IN AN AUTOMATED WAY.
Thank you.
In the iOS simulator apps simply run on Mac, but their output is shown in the iOS simulator. This means that any tool that allows you to audit Mac applications will allow you to do the same with the iOS simulator.
Check your Activity Monitor, you'll see that the app is simply listed there. I think the standard Xcode Instruments will work fine for you.
If you have the Xcode project, then look at the code and the debugger while it is running. Other than that, if you run it in the iOS simulator you will only see the GUI portion of the app, unless you are running it side by side from Xcode (then you can use Instruments or the debugger). This documentation should allow you to run the apps on the simulator.

iPhone console for nslog?

How can i see nslog messages when I am testing on device? My only way right now is to have a UITextView and put message in there, there must be a better way..Thanks.
I went to seetings and turned on console but still don't know how to see them. Thanks.
These calls will output to your devices system log. You'll be able to get these from the XCode Organizer when you plug your phone back in.
There are also a few apps you can install from App Store on your device (search for free ones, with Console in their title, and ability to send emails with logs).
This is useful especially if you want to debug some errors on your beta testers devices, or don't want to connect your device every time you want to see what's in the console log.

Is it possible to access crash logs stored on iPhone through my app?

Is it possible to access crash logs and console logs stored on iPhone through my app?
If so, how can i do it?
You can access them through the device organizer in the dev tools. They'll be available even if the phone is not a registered development device for you.
Check out PLCrashReporter. It does just that, but you do need to upload the crash logs somewhere, then desymbolicate them. Just a warning, this does override the default crash reporting to Apple, so be careful shipping an app with this in it.

how to see console logs on iphone?

I developed an applications on gps functionality.
I stuck up with some problem, i want to see the user location coordinates from the device.
I kept NSLogs wherever its required for me, if i connect the device to mac and if i run i
am able to see the logs in console,
But in my requirement i have to roam to some other other location and i need to get the logs.
how to get logs from device?
can we get these logs by writing them to any file?
if at all we are writing to any file, after connnecting the device to itunes how to get the file where i have writtern?
thanks in advance..... :)
Maybe the Organizer's console or device log can be "written" by the app and, when connect it, you can see it on the Organizer.
Another "low technology" solution is to save on disk the data (as a Plist) and show it into the app via UITable or UITextView.
Phone Configuration Utility lets you easily create, maintain, encrypt, and install configuration profiles, track and install provisioning profiles and authorized applications, and capture device information including console logs.
It is available for Windows and Mac.
For Windows: http://support.apple.com/kb/DL1466
For Mac: http://support.apple.com/kb/DL1465
I'm using this app ConsoleLog for iPhone