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!!
Related
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
I've gotten a couple of bug reports from customers that I am unable to duplicate with my devices. These aren't crashes hence no crash reports. I'm trying to figure out what options I have to solve these bugs. Keep in mind that these customers vary widely in their technological prowess and willingness to help out.
The best I can think of is making an ad-hoc build with logging enabled to a file in their documents directory, but then I need a way to get that file off their phone.
Specifically, Short of remote debugging (that would be great) I want to get a log file or some other diagnostics to see what is going on.
What options do I have?
EDIT: Great information already given, but I am looking for something like 'writing log statements to a remote server', probably just for an ad-hoc (for debugging) build. So, basically, by looking at their log, hopefully, I can deduce where things go wrong. I could build such a system, but wondering what is already out there.
Once you have the ad-hoc build, you can send the app to your customers, so that they can install it in iTunes and from there on to their iPhones.
Dragging/dropping on iTunes your app will place it in the App folder.
As to retrieving your log file, you could implement copying of your log file back to itunes (like many apps do), so the customer could get it from there and send it back to you... or you could simply post the file through HTTP to a server of yours under the customer's control.
AdHoc + TestFlightApp.com - extremely easy, powerful.
Flurry is an option.
I have registered as free user and integrated localytics in iphone4 app.i have used API Key they have given.but i could not see reports after logging in.i have checked the app through tagging some events.How much time will be taken to give? any help? I did not upgrade..is it need?
Community customers should expect to see their data in at most a few hours after logging their sessions. If you check the console log while you run the app in the simulator you should see traces from Localytics confirming that data collection is working and being uploaded. Are you using Phonegap or another tool? If so, there are some additional debugging steps required to make sure everything is working.
Feel free to contact me directly: henry#localytics.com and I will be glad to make sure everything is working correctly for you.
-- Henry
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
I found this information on a blog which talks about invalid product ids.
http://troybrant.net/blog/2010/01/invalid-product-ids/
I tried everything suggested in the
Apple forums and here, and still
couldn’t get it to work. Found the
solution – your app needs to be
transferred by Xcode for the sandbox
to be enabled.
Obvious, right? Well, if you are
working with an update to an existing
account, the device will still treat
it as an App Store-installed app.
Delete it, then transfer it again. It should work now :)
i am also getting invalid product ids.i am not able to get clear in the above said point...
i am not able to understand what i need to do when transferring the application into device...
Kindly guide me out and thanks for your help
That point just means that you need to run the app from Xcode in order for the sandbox to be available. (Build and Run)
Invalid product ids are a major pain to debug. If you're sure you've gotten everything on that checklist, then you just need to wait. Then only other problem that I've seen is that you might need to remove the app from the device and redeploy in order to get good products back from the store.
I had trouble getting the app store to recognize my sandbox test account. I had to log out wit iTunes, sync, then log in again with iTunes. Just using the device itself to log in/out didn't help.