Path of Iphone crash logs on device - iphone

Where are Iphone crash logs stored on the real device? Is there a reasonable way to get them without syncronizing the device with Itunes? I am not using Xcode as my main development environment. I am using Airplay sdk thus my primary dev environment is on Windows.

You can sync your phone and then look on your computer in:
/Library/Logs/CrashReporter/MobileDevice
You can also use a service like Crittercism to upload crash logs automatically.
www.crittercism.com

Try iPhone Configuration Utility, available for Windows and Mac.

You can access the crash logs from the Organizer window in Xcode.

paths on device are:
/var/mobile/Library/Logs
/var/logs
But you can get it only in jailbroken device

Related

Console in iphone

When we are developing a application for iOS, we write some NSLog statements.
Now, when we actually deploy this code in iPhone,
Where do all the statements print?
How can we access the output in iPhone?
You can debug the app while your device is connected with Xcode and check the NSLog in the console.
You can also check this NSLog when not connected with Xcode. You can access this in the organizer while your app is not in debug mode. Open Xcode and than open Organizer (CMD+Shift+2) and click the connected device with multiple option like Profile, Console, andDevice Log. When your app crashes, it displays the crash log on device Log while your app is running its NSLog display in the console.
Just connect your iPhone to mac, set your building target to your device, you can see NSLog at your XCode console.(Shift+Cmd+Y to open it).
And if you need full information, open the XCode, then:
'Organizer' -> 'Devices'
Choose your device at left sidebar, you'll find Console & Device Logs
Logs are all there. :)
use Organizer, bundled with Xcode
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

Can I access the App Store from within the iOS Simulator?

Within the iOS Simulator, is it possible to access the App Store?
That is, can I install the App Store application within the Simulator and download applications through it to the iOS Simulator? If so, how?
It's a simulator not an emulator. Even if there was an App Store in the Simulator, none of the apps in the store would work since they are compiled for ARM CPUs while the Simulator runs x86 code.
Sorry it is not available! The simulator will only allow you to install programs from xCode. I am not sure why they restrict this - but I am also not sure why you would want to use the Simulator for this purpose.
Interacting with iOS Simulator: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/InteractingwiththeiOSSimulator/InteractingwiththeiOSSimulator.html
Note: You cannot install apps from the App Store in simulation environments.
You can put application in your simulator. But you cannot run it. They have restricted users to run applications. I found where the .app files are.
Machintosh HD - Application - Xcode - Contents - Developer - Platforms - iPhoneSimulator.platform - Developer - SDKs - iPhoneSimulator.sdk - Applications
All applications are in there but, I can't run them. However, I succeeded to install .app files.
In .ipa file, there is 'payload' folder, and .app file is in there.
All you need is just copy it and paste it in Applications folder. Then you can see the icon on your simulator.
But, it will not work.
Probably wont work, but if you have an IOS device and copy an app onto your computer, you might be able to run it on IOS simulator, as you can run your own apps.

Can I test an iPhone app on a device synced with another computer?

Is it possible to test an iPhone app on an iPhone/iPod touch which is synced to a computer other than the host computer?
If so, will this also work for testing a device which is synced to a Windows machine?
I don't see why not. You do need to register the device to do any testing at all though. Here is a good tutorial for how to do that.
Update: I tried it yesterday and it worked just fine.
You definitely can. With XCode 3.2.3 it's pretty easy now--you can dynamically load the provisioning certificate to the phone. To do this, plug in the phone that you want to use via USB, open the Organizer in XCode, and follow the instructions for provisioning the device. You must be connected to the internet.
Note: if there are new developers agreements from Apple that you haven't accepted yet, this certificate provisioning step may fail silently.

iPhone crash log?

I have provisioned an iphone and had the user install the app. It fails.
Is there a crash log that I can see why it failed on the iphone?
Ian
if you can connect the iphone up to a computer with xcode, in the organizer window it shows the crash logs for each of the application's crashes. Shortcut key in xcode to bring up the organizer Command+ctrl+o.
If they do not have access to xcode...
From http://www.anoshkin.net/blog/2008/09/09/iphone-crash-logs/
Whenever you synchronize your iPhone or iPod Touch, all the crash logs are transferred to your computer. Here are their locations:
Mac OS X : ~/Library/Logs/CrashReporter/MobileDevice/DEVICE_NAME
Windows XP: C:\Documents and Settings\USERNAME\Application Data\Apple computer\Logs\CrashReporter/DEVICE_NAME
Windows Vista: C:\Users\USERNAME\AppData\Roaming\Apple computer\Logs\CrashReporter/MobileDevice/
The easiest way is to use a crash reporting service to automatically send crash reports. The best one I've found so far is Crittercism:
www.crittercism.com

Accessing crash logs on iPhones used for ad hoc distribution

When using one's own iPhone for development it's easy enough to access any crash logs via XCode->Organizer->Crash Logs.
How does one access crash logs on another person's phone if they don't have it set up for development in XCode, as would likely be the case if you were distributing your app to them via ad hoc distribution for beta testing?
Two ways:
iTunes syncs all crash reports during a regular sync. They can be found in Library/Logs/CrashReporter/MobileDevice on a Mac and probably somewhere in %APPDATA% on Windows.
You can use the iPhone Configuration Utility for Mac OS X on any Mac to access the phone's console and crash logs. Note: the iPhone Web Configuration Utility, which is available for Windows and Mac (note the "web" in the name) does not allow this kind of access and only provides a portion of the Configuration Utility's features. Er, no you can't. Xcode provides this facility in the Organizer (from the Window menu), but not iPCU.
From Apple's Technical Note TN2151:
For applications that have been distributed using Ad Hoc or Enterprise methods, getting crash reports requires user cooperation. Specifically, the user will need to retrieve the crash report from the directory where it was copied by iTunes. Depending on the platform, the directory is:
Mac OS X: ~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>
Windows XP: C:\Documents and Settings\<USERNAME>\Application Data\Apple Computer\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>
Windows Vista or 7: C:\Users\<USERNAME>\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>
<USERNAME> is the user's login name for the computer. <DEVICE_NAME> is the name of the iPod touch or iPhone, for example, "John's iPhone".
You are only interested in .crash files. The crash report's file name begins with the application name and contains date/time information. In addition, <DEVICE_NAME> will appear at the end of the file name, before the extension.
http://www.ispeeddial.com/how-to-find-the-crash-log-for-an-iphone-application/
This will also be helpful;
http://furbo.org/2008/08/08/symbolicatifination/
Related to what #millenomi said - from what I can tell, crash logs are downloaded when you connect your iPhone to the computer, not when you sync the phone via iTunes. If your users have iTunes configured to not sync on connection, knowing this can save them the time of syncing. Along those same lines, if your application crashes while it's connected to a computer, simply syncing via iTunes is not enough to download crash logs - I've found that I need to disconnect and reconnect the phone to the computer.
I've only tested this on iPhones and iPod touches that are configured as development devices. Don't know if this makes any difference.
On an iPhone 5, you do not need to connect the iPhone to iTunes to see the logs. Not sure about other iPhone versions but you can get to the logs by opening up Settings and then navigating to:
Settings -> General -> About -> Diagnostics & Usage -> Diagnostics & Usage Data
For the app you are looking for all crash logs should be in this area as:
-.ips
Not 100% sure if this works only for ad hoc apps or not. I think it works for any apps.