How to fix non-replicatable iOS issue? [duplicate] - ios

How to get the CrashReport from iPhone?
Thanks
Vadivelu

Open Xcode. Go to the organizer window. Select one of your attached devices. Look for a tab named 'Device logs' on the right.
Once you have released your app to the public, you will get crash logs from users through iTunes Connect.

Application crash logs are transfered to your computer each time you do a sync with the device, in the iTunes. Thus, first step is to sync with iTunes:
Mac OS X –
On the Mac, crash logs are kept at:
~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>
where ~ is your Home folder.
Windows Vista –
Files are located here:
C:/Users/<USERNAME>/AppData/Roaming/Apple computer/LogsCrashReporter/MobileDevice/<DEVICE_NAME>
AppData folder is hidden by default, , so you need to reveal it by typing the address in My Computer’s address bar.
Windows XP –
Location is here:
C:/Documents and Settings/<USERNAME>/Application Data/Apple computer/LogsCrashReporter/<DEVICE_NAME>
is your login username. Application Data folder is usually hidden by default, so you need to reveal it in the same way as in Vista — by typing in and pressing Enter.
check out my blog entry here - http://www.makebetterthings.com/blogs/iphone/how-to-find-crash-logs-for-iphone-applications-on-mac-and-windows/

see Technical Note TN2151
When an application crashes on the
iPhone or iPod touch, a "crash report"
is stored on the device. Crash reports
describe the conditions under which
the application terminated, in most
cases including a complete stack trace
for each executing thread, and are
typically very useful for debugging
issues in the application.
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. 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/
Windows XP: C:\Documents and
Settings\\Application
Data\Apple
Computer\Logs\CrashReporter\MobileDevice\
Windows Vista or 7:
C:\Users\\AppData\Roaming\Apple
Computer\Logs\CrashReporter\MobileDevice\
is the user's login name
for the computer. 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, will appear at
the end of the file name, before the
extension.

You can use Test Flight sdk to get to know the crash report , and also other info related to crash like how did get crashed. Here is the link where you will know how to use::
http://changhoward.blogspot.in/2012/02/ios-developer-how-to-use-testflight-to.html

Related

How can I see data inside an iOS app from Xcode?

An iOS app is supposed to remove all data when a user logs out of the app. This has been completed, but I am looking for a way to verify that there is no data left over in the app (SQLite, user preferences, etc.)
I cannot figure out how IO can link to the app from Xcode (or from somewhere else and "look" into the app after a user logs out and confirm that all data is gone.
Bryan
I cannot figure out how IO can link to the app from Xcode (or from somewhere else and "look" into the app after a user logs out and confirm that all data is gone.
You can download the directory that contains all the app's data:
Open the Devices and Simulators window in Xcode and connect to the device you want to examine.
You'll see a list of the apps that you've installed on the device. Find the one you're testing in the list and click on it.
Click the gear icon at the bottom of the list and choose Download Container....
Xcode will download a bundle named something like com.your.identifier 2018-12-17 14/18.28.448.xcappdata.
Find the downloaded bundle (you can choose where Xcode puts it) and control-click on it. Choose Show Package Contents. Finder will open a window showing you everything in the app's container.
In addition to just looking at the app container, you can also modify the container and install it on a device. This can be useful for testing. For example, you could modify or delete an important data file from the container and install it on a test device to test that your app gracefully handles an error situation. Or, if someone testing your app runs into a problem you can't reproduce, you can get a copy of the app container from them and install it on your own device.

iOS: In what precise directory are crash logs stored on an iOS device?

We need to upload the core dump and/or crash log from an app crash that is occurring on an iOS device. My question is: In what directory on the device can I find that file? The device is deployed remotely, so I cannot immediately connect it to a Mac to retrieve info about the crash via Xcode, and we do not have a crash manager like Crashlytics running on the device. We do however have a person using the device (it's an iPad) who can install another app that can upload files that it's allowed to access.
To access the crash report files via an app, the device needs to be jailbroken, otherwise it is not possible to access the location using an app due to app sandboxing.
To access the crash report without jailbreaking the device, you can follow these steps (for iOS 7):
Open the settings app
Select the General menu
Select About
Select Diagnostics & Usage
Select Diagnostic & Usage Data
Search in the list of files for an entry that starts with your apps name, followed by a date and select that entry
Mark the full text of the report and copy it to the clipboard
Create a new mail, paste the copied text and send it

Get database from crashed iOS app

I develop an iOS app and I send it to any beta tester. After 2 month app has a crash and now it doesn't work .
I need to get any information about log or better I need database. How can I get it ? I can connect to my Mac, but I don't know how to access to db data (if is it possible).
It's very important get database information.
Thank you.
In your device, you can access support directories only for applications compiled for development.
Connect your device to your computer. Having launched xcode, open 'Organizer' window (Window->Organizer). On the left hand side of the menu you will have your device displayed. Under your device, select 'Applications'. All the dev applications will be available there. Select the application you are interested in and click 'Download' at the bottom of the window. What happens - the support directories are downloaded. They are stored in bundle with extension '.xcappdata'. 'ctrl' click on the file and menu will give you an option 'Show Package Contents'. You will find there your sql database file.
You can either use XCode Organizer to download the application directory from the device, or if the tester is remote ask them to install a program like iExplore that lets you simply copy application directories off of the device to send to you.

How to debug BlackBerry devices on Mac using the filesystem?

How exactly do you go about debugging BlackBerry apps that utilise the (BlackBerry's) filesystem on Mac?
I'm currently recording video and detecting when the video file appears on the file system, however due to the restrictions:
The BlackBerry file system is auto-mounted when plugged into a Mac
The app cannot access the filesystem when mounted
These two things have made debugging the app when it uses the filesystem.. impossible! We receive a file system error 1003 which according to the results from google mean it's mounted and you don't have access.
Is there a a simple way to get round this?
I also receive 63 signing emails from RIM. Woe is me
The workaround is a bit cumbersome, but it should work for you.
Implement EventLogger instance in your application.
Log all necessary info via EventLogger
Compile and run your app on the detached device from your computer.
Inspect log (press CTRL and hit LGLG on the device keyboard). As an additional option - automatically export log to a text file stored in the device filesystem (media card) to review it on your computer.

Deleting an Application from 8830

We have developed an application for 8830 Device and its working fine.
The problem that we are facing now is that, we are unable to delete the application from the device.
We selected the application, pressed the menu button, but dont find any delete option.
We went to the applications list, through advanced options, but surprisingly we dont see our application in that that applications list(By Deploying the same application in higher devices such as 9630 and 9550,9800) we see a delete option, by pressing menu and also see our application in the options->application list.
We went to modules, and identified the modules of the application, but there also we were not able to find the delete option in it.
We also tried using the blackberry desktop software too, but in vain, we dont find our application in that list too
** The current device we are using is not configured with any BES(We are registered with the BIS) And moreover, we are able to delete the yahoo messenger, gtalk, twitter from the mobile except our application(It just behaves like some shortcut).
Do we need to add some extra lines of code in any class so that it gets identified as an application.Kindly help on this.
Thanks in advance,
Dheeraj Jami
Usually when an application installed via BB Desktop Manager + .alx file or wirelessly (Browser + jad file) the application is listed in the applications list and can be deleted by end-user without any problems.
But if the application installed via javaloader or cod file created automatically via RIM SDK then the application won't be listed in the application list.
The working way to delete unwanted cod file(s) is using javaloader.exe that comes with JDE distribution package.
Connect your device to the desktop computer via usb-cable and type the command in command line, when you are in folder where javaloader.exe located:
javaloader -usb erase -f unwantedfile.cod
and press Enter
Do we need to add some extra lines of code in any class so that it gets identified as an application.
No, you don't. From my experience it just happens sometimes with BlackBerries. In this case the only way to get rid of it is to pull the battery out of the device. This action resets the device to its factory state (all apps installed by user will be lost).

Resources