Is it possible to get the crash log from my app? I know that we can get the exception handler by NSSetUncaughtExceptionHandler, but I want to get the crash file which could be found by Organizer. I want to access that file and send to my server. Is there any supported SDK to do that?
Thanks!!
The popular service HockeyApp is based on open source software that has it's own client that lives in your app and a basic server to collect crash reports from your app.
Check out their github account for more information on setting it all up.
https://github.com/TheRealKerni/QuincyKit
Related
There are quite a few tutorials on how to access crash reports using a computer, but what I would like my app to do is scan for crash reports (from itself) on startup--so that users can use my app to send me their reports. Is this possible?
PLCrashReporter is an open source crash reporting framework that can be added to an iOS App. Reports are generated in protobuf encoded format, which should allow an app to upload these reports to a server.
Take a look at these few resources that may have the solution you need:
https://testflightapp.com/
http://www.hockeyapp.net/
http://quincykit.net/
You can get them using your itunes connect account
When the user synchronizes their device using iTunes, crash reports are copied to a
directory on the user's computer. If the application was distributed via the App Store and
the user has chosen to submit crash logs to Apple, the crash log will be uploaded and the
developer can download it via iTunes Connect.
You can also use Crittercism which directly sends you an email once a crash happens.
Another proprietary (but free) framework you can use for crash reporting is Crashlytics.
I need to access iphone crash log file via programmatically. I trying to write a crash report feature that when you launch the app after a crash, it will offer to send the crash report to the server. I can't find how to get the crash log within the app. I saw there is a framework that doing so (PLCrashReporter), however this framework is large and I don't need most of it's features. is any library or IOS code to read crash log file .
Check out http://quincykit.net/ for your self hosted php based solution, contains all you need. Or a hosted service, there are plenty out there right now.
The crash log returned when your app has an error on iOS is wonderful however it would be 100 times better if it contained the console output from when your app started as part of the log. Is there a way to automatically have that information in the crash log, or have a semi-automatic system that testers could use when sending in crash logs?
I think you might want to take a look at http://apphance.com. It's exactly what you are looking for - including capability of sending problem reports from device by testers, including screenshots, you can track history of session including full console logs, you can even see crashes from out-of-memory problems which are otherwise difficult to get without physical access to the device. It's closed beta for now but soon it will be open for everyone. You can request access directly at the page.
Disclaimer: I am CTO of Polidea, company which is behind apphance and co-creator of the service.
#Medran i am not sure if this will help but if you can get the Brad Larsons videos on Advance iPhone App Development than there he says some thing about .dSYM file that will help you find the places where crash occurs. .dSYM file is made when you build your app using Xcode. See if you can find that file in your project folder its named something like this MYapp.app.dSYM
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.
Can we get the crsah logs thro app ?
Will NSFileManager/NSData help us to accesss .crash files from iphone ?
Is there any way to get it, except the well-known iTunes sync method...??
Thanks in advance.
Gopi.
There are also other ways: my company just released a service for just that purpose: http://apphance.com . You add a simple framework project to your app, integrate it (takes about 5 minutes) and you can see all the logs and crashes from your application in a web panel, where the logs, crashes, memory exceptions etc. are all available. It's automagically available from a web panel, without telling the tester whet should be sent where. The tester can also report issues directly from the application including screenshots.
The service is currently in closed beta stage and you can request beta access to it.
No, apps can not access their crash logs programatically. Apps can't access the file system outside of their sandbox (i.e. your application's directory).
Yes. Thanks Shaggy Frog.
To get the crash reports , I thought that I need to communicate with an user, and help them find the logs, they can email to me.
But later( after posting this question) I found that, we can get logs from iTunes Connect.
Apple allows us to see the some crash logs ,where developers can manage applications they have on the App Store, check their sales, and get promotional codes for their apps.
http://www.tuaw.com/2009/05/02/itunes-connect-now-lets-developers-see-crash-reports/
Thank you all!!
Have a great day!!