<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Crash Logs on A&#43; programming moments</title>
    <link>https://aplus.rs/tags/crash-logs/</link>
    <description>Recent content in Crash Logs on A&#43; programming moments</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 29 Oct 2011 13:35:28 +0000</lastBuildDate>
    
	<atom:link href="https://aplus.rs/tags/crash-logs/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Guide to symbolicating iPhone app crash logs with Xcode 4.2</title>
      <link>https://aplus.rs/2011/guide-to-symbolicating-iphone-app-crash-logs-with-xcode-4-2/</link>
      <pubDate>Sat, 29 Oct 2011 13:35:28 +0000</pubDate>
      
      <guid>https://aplus.rs/2011/guide-to-symbolicating-iphone-app-crash-logs-with-xcode-4-2/</guid>
      <description>&lt;p&gt;I was recently investigating one very strange crash in an app I&amp;rsquo;m working on. The app is distributed ad-hoc (through wonderful TestFlightapp.com) and each release is archived in Xcode 4.2. I got the &lt;code&gt;.crash&lt;/code&gt; file from beta tester and dragged it into Xcode&amp;rsquo;s Organizer, which did symbolicate everything in the stack &lt;em&gt;except&lt;/em&gt; two lines from my code.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Incident Identifier: 8B369A29-8421-4686-B1F6-9D66524937B5
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    CrashReporter Key:   746834fde1cb2033d4103df311e8f3b6ee9e8817
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Hardware Model:      iPhone3,1
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Process:         myApp &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;74&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Path:            /var/mobile/Applications/78EC36CC-DAF5-4910-9D60-A03DDC8E24BC/myApp.app/myApp
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Identifier:      myApp
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Version:         ??? &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;???&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Code Type:       ARM &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;Native&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Parent Process:  launchd &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Date/Time:       2011-10-27 11:37:55.841 +0100
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    OS Version:      iPhone OS 4.3.3 &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;8J2&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Report Version:  &lt;span class=&#34;m&#34;&gt;104&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Exception Type:  EXC_CRASH &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;SIGABRT&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Exception Codes: 0x00000000, 0x00000000
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Crashed Thread:  &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Thread &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt; name:  Dispatch queue: com.apple.main-thread
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Thread &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt; Crashed:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;0&lt;/span&gt;   libsystem_kernel.dylib        	0x3657aa1c 0x36569000 + &lt;span class=&#34;m&#34;&gt;72220&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt;   libsystem_c.dylib             	0x366513b4 pthread_kill + &lt;span class=&#34;m&#34;&gt;52&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;2&lt;/span&gt;   libsystem_c.dylib             	0x36649bf8 abort + &lt;span class=&#34;m&#34;&gt;72&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;3&lt;/span&gt;   libstdc++.6.dylib             	0x36613a64 __gnu_cxx::__verbose_terminate_handler&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; + &lt;span class=&#34;m&#34;&gt;376&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;4&lt;/span&gt;   libobjc.A.dylib               	0x3548806c _objc_terminate + &lt;span class=&#34;m&#34;&gt;104&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;5&lt;/span&gt;   libstdc++.6.dylib             	0x36611e36 __cxxabiv1::__terminate&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;void &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;*&lt;span class=&#34;o&#34;&gt;)())&lt;/span&gt; + &lt;span class=&#34;m&#34;&gt;46&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;6&lt;/span&gt;   libstdc++.6.dylib             	0x36611e8a std::terminate&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; + &lt;span class=&#34;m&#34;&gt;10&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;7&lt;/span&gt;   libstdc++.6.dylib             	0x36611f5a __cxa_throw + &lt;span class=&#34;m&#34;&gt;78&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;8&lt;/span&gt;   libobjc.A.dylib               	0x35486c84 objc_exception_throw + &lt;span class=&#34;m&#34;&gt;64&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;9&lt;/span&gt;   Foundation                    	0x3522d924 __NSThreadPerformPerform + &lt;span class=&#34;m&#34;&gt;648&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;10&lt;/span&gt;  CoreFoundation                	0x31942a72 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + &lt;span class=&#34;m&#34;&gt;6&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;11&lt;/span&gt;  CoreFoundation                	0x31944758 __CFRunLoopDoSources0 + &lt;span class=&#34;m&#34;&gt;376&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;12&lt;/span&gt;  CoreFoundation                	0x319454e4 __CFRunLoopRun + &lt;span class=&#34;m&#34;&gt;224&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;13&lt;/span&gt;  CoreFoundation                	0x318d5ebc CFRunLoopRunSpecific + &lt;span class=&#34;m&#34;&gt;224&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;14&lt;/span&gt;  CoreFoundation                	0x318d5dc4 CFRunLoopRunInMode + &lt;span class=&#34;m&#34;&gt;52&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;15&lt;/span&gt;  GraphicsServices              	0x31254418 GSEventRunModal + &lt;span class=&#34;m&#34;&gt;108&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;16&lt;/span&gt;  GraphicsServices              	0x312544c4 GSEventRun + &lt;span class=&#34;m&#34;&gt;56&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;17&lt;/span&gt;  UIKit                         	0x319fbd62 -&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;UIApplication _run&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; + &lt;span class=&#34;m&#34;&gt;398&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;18&lt;/span&gt;  UIKit                         	0x319f9800 UIApplicationMain + &lt;span class=&#34;m&#34;&gt;664&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;19&lt;/span&gt;  myApp                      	0x00003a4c main &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;main.m:14&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;m&#34;&gt;20&lt;/span&gt;  myApp                      	0x00003a04 0x1000 + &lt;span class=&#34;m&#34;&gt;10756&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ...
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Binary Images:
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        0x1000 -    0x67fff +myApp armv7  &amp;lt;a0b39fab741e34eb831048cc752d8e0c&amp;gt; /var/mobile/Applications/78EC36CC-DAF5-4910-9D60-A03DDC8E24BC/myApp.app/myApp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Great. The usual reason for this is that Xcode did not find &lt;code&gt;.dSYM&lt;/code&gt; file. This is actually really strange since Xcode has the &lt;code&gt;.xcarchive&lt;/code&gt;, saved in its default location. But no matter what I tried, it did not symbolicate properly. One possible reason that I&amp;rsquo;ve seen people mention is that Spotlight has not indexed the archives and you can force this with this Terminal command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    mdimport ~/Library/Developer/Xcode/Archives/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This did not help either. I tested Spotlight and strangely it could not find the app signature (from the bottom of the crash log excerpt above):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    mdfind &lt;span class=&#34;s2&#34;&gt;&amp;#34;com_apple_xcode_dsym_uuids == A06EC84E-53BF-3209-8B63-C0CAEBDB45B6&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;At this point I tried to do it manually and in series of attemps encountered all kind of possible issues.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;First&lt;/strong&gt;, I had a custom &lt;code&gt;symbolicatecrash&lt;/code&gt; script in &lt;code&gt;/usr/local/bin/&lt;/code&gt; from several months ago. This script often changes as Apple devs fix bugs in it. While they do that and ship the fixed version with next Xcode update, good souls on the internet have already resolved the given issue. Thus at some point I downloaded one of those custom versions and placed it there. Hence when I tried to run &lt;code&gt;symbolicatecrash&lt;/code&gt; manually, it used that version. You can check this in Terminal, by typing &lt;code&gt;which symbolicatecrash&lt;/code&gt; - if it finds the script anywhere in your default paths, it will show it. If not, then you are ok.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Second&lt;/strong&gt;, in Xcode 4.2, the current version of this script is at this location: &lt;code&gt;/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash&lt;/code&gt;. Files in this private framework are not accessible from any other folder, so in order to run it manually you need to either use this full path or copy it to the folder where you acquired &lt;code&gt;.crash&lt;/code&gt; log files are and run it from there.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Third&lt;/strong&gt;, I extracted the .app and .dSYM file from the archive and placed in the same folder. I then tried to run the script from there, with all of these line (one by one):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ./symbolicatecrash -v *.crash . &amp;gt; s.crash
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ./symbolicatecrash -A -v myApp_2011-10-27-113755_Alex-iPhone.crash myApp.app.dSYM &amp;gt; s.crash
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;None did anything differently. Things began to look really crazy at this point and I started doubting is this a crash report really from this version. Double-checked with tester, also double checked the .app.dSYM file as described &lt;a href=&#34;http://stackoverflow.com/questions/6655748/force-symbolicatecrash-to-use-a-specific-app-and-dsym-file&#34;&gt;here on Stack Overflow&lt;/a&gt;. All was fine, this was the binary used.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Forth&lt;/strong&gt;, I tried to directly look for the given hex address in the crash log:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    dwarfdump --lookup 0x00003a04 --arch armv6 myApp.app.dSYM
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And this finally gave me what I needed:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ----------------------------------------------------------------------
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;     File: myApp.app.dSYM/Contents/Resources/DWARF/myApp &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;armv6&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    ----------------------------------------------------------------------
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Looking up address: 0x0000000000003a04 in .debug_info... found!
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    0x0000012c: Compile Unit: &lt;span class=&#34;nv&#34;&gt;length&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; 0x00005a18  &lt;span class=&#34;nv&#34;&gt;version&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; 0x0002  &lt;span class=&#34;nv&#34;&gt;abbr_offset&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; 0x00000000  &lt;span class=&#34;nv&#34;&gt;addr_size&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; 0x04  &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;next CU at 0x00005b48&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    0x00000137: TAG_compile_unit &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;1&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; *
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_producer&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Apple clang version 3.0 (tags/Apple/clang-211.9) (based on LLVM 3.0svn)&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_language&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; DW_LANG_ObjC &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_name&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;/Users/aleck/dev/consulting/myApp/trunk/Classes/AppDelegate.m&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_entry_pc&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x0000323c &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_stmt_list&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x00000112 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_comp_dir&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;/Users/aleck/dev/consulting/myApp/trunk&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_APPLE_optimized&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x01 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                 AT_APPLE_major_runtime_vers&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x02 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    0x00000dc3:     TAG_subprogram &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;15&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; *
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_sibling&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;{&lt;/span&gt;0x00000dfb&lt;span class=&#34;o&#34;&gt;}&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_name&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;-[AppDelegate dealloc]&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_decl_file&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;/Users/aleck/dev/consulting/myApp/trunk/Classes/AppDelegate.m&amp;#34;&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_decl_line&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; &lt;span class=&#34;m&#34;&gt;250&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_prototyped&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x01 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_APPLE_isa&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x01 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_low_pc&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x000039d4 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_high_pc&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; 0x00003a6c &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;                     AT_frame_base&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt; r7 &lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Line table dir : &lt;span class=&#34;s1&#34;&gt;&amp;#39;/Users/aleck/dev/consulting/myApp/trunk/Classes&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Line table file: &lt;span class=&#34;s1&#34;&gt;&amp;#39;AppDelegate.m&amp;#39;&lt;/span&gt; line 254, column &lt;span class=&#34;m&#34;&gt;5&lt;/span&gt; with start address 0x0000000000003a02
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    Looking up address: 0x0000000000003a04 in .debug_frame... found!
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    0x00000100: FDE
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            length: 0x0000000&lt;span class=&#34;sb&#34;&gt;```&lt;/span&gt;objectivec
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;       CIE_pointer: 0x00000000
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        start_addr: 0x000039d4 -&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;AppDelegate dealloc&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        range_size: 0x00000098 &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;end_addr&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; 0x00003a6c&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      Instructions: 0x000039d4: &lt;span class=&#34;nv&#34;&gt;CFA&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;4294967295+4294967295
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or so I thought. When I looked into my code at this line, this was in &lt;code&gt;dealloc&lt;/code&gt; method, where &lt;code&gt;NSPersistentStoreCoordinator&lt;/code&gt; was released. And that was really nutty place to have a bug. At this point I was completely stumped and had no idea what else to try.&lt;/p&gt;
&lt;p&gt;Luckily in this case, tester was able to give login credentials so I could repeat the scenario using his data, while debugging the app on the device. And found that I had a badly formatted NSPredicate which worked in 99.9% of cases and this tester stumbled on 0.1% where it did not. Great find, it would be a serious head-scratcher if app went live with this.&lt;/p&gt;
&lt;p&gt;But I still don&amp;rsquo;t understand why Xcode 4.2 won&amp;rsquo;t see the &lt;code&gt;.dSYM&lt;/code&gt; file and while the script itself won&amp;rsquo;t symbolicate this &lt;code&gt;.crash&lt;/code&gt; log. Honestly, I can&amp;rsquo;t help but think this is seriously more complicated than it needs be. But it is as it is. Here some other useful stuff I encountered while working on this.&lt;/p&gt;
&lt;p&gt;Place where Xcode puts &lt;code&gt;.crash&lt;/code&gt; logs picked from your testing devices: &lt;code&gt;~/Library/Logs/CrashReporter/MobileDevice/&amp;lt;your device name&amp;gt;.symbolicated&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Various possibly helpful links:&lt;/p&gt;
&lt;p&gt;· &lt;a href=&#34;http://www.goosoftware.co.uk/blog/the-symbolicator-helps-those-who-help-themselves/&#34;&gt;http://www.goosoftware.co.uk/blog/the-symbolicator-helps-those-who-help-themselves/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;· &lt;a href=&#34;https://devforums.apple.com/message/404524&#34;&gt;https://devforums.apple.com/message/404524&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;· &lt;a href=&#34;http://stackoverflow.com/questions/2697067/symbolicate-adhoc-iphone-app-crashes&#34;&gt;http://stackoverflow.com/questions/2697067/symbolicate-adhoc-iphone-app-crashes&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you have any ideas that could help, please write in comments.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>How to find crash logs for iPhone applications on Mac, Vista and XP</title>
      <link>https://aplus.rs/2009/how-to-find-crash-logs-for-iphone-applications-on-mac-vista-and-xp/</link>
      <pubDate>Sat, 08 Aug 2009 16:31:00 +0000</pubDate>
      
      <guid>https://aplus.rs/2009/how-to-find-crash-logs-for-iphone-applications-on-mac-vista-and-xp/</guid>
      <description>&lt;div style=&#34;color:red;font-weight:bold;float:right;width:40%;margin-left:3%;&#34;&gt;
&lt;p&gt;Please note: this is a personal website, NOT a support resource for various large games and app companies that send their customers here. Use this page to find the crash logs but then contact them, not me.&lt;/p&gt; 
&lt;p&gt;Please!&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;iTunesConnect service &amp;ndash; a web site that iPhone developers use to manage their published applications &amp;ndash; has a separate area that will list all the synced crash reports from the application users.&lt;/p&gt;
&lt;p&gt;However, not all of the crashes appear there, or are slow to appear. Thus, if you have a desperate problem with someone&amp;rsquo;s application, it&amp;rsquo;s a good idea to pick these up and send them to a developer.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s how, in three major operations systems: Mac OS X, Windows Vista / Windows 7 and for Windows XP.&lt;/p&gt;
&lt;h3 id=&#34;itunes-sync&#34;&gt;iTunes sync&lt;/h3&gt;
&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://aplus.rs/images/2009/Picture-1.jpg&#34; alt=&#34;Sync the iPhone or iPod Touch through iTunes&#34;&gt;&lt;/p&gt;
&lt;h3 id=&#34;mac-os-x&#34;&gt;Mac OS X&lt;/h3&gt;
&lt;p&gt;On the Mac, crash logs are kept at:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;~/Library/Logs/CrashReporter/MobileDevice/&amp;lt;DEVICE_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;where ~ is your Home folder. Here&amp;rsquo;s an example:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://aplus.rs/images/2009/Picture-3.png&#34; alt=&#34;Crash logs on the Mac OS X. Device name is &amp;ldquo;iPhone AV&amp;rdquo; here&#34;&gt;&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s the &lt;code&gt;.crash&lt;/code&gt; file and &lt;code&gt;.plist&lt;/code&gt; file - archive them both and send to a developer. Actually, pick all the files you find there that have the name of the problematic application.&lt;/p&gt;
&lt;h3 id=&#34;windows-vista--windows-7&#34;&gt;Windows Vista / Windows 7&lt;/h3&gt;
&lt;p&gt;Files are located here:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\Users\&amp;lt;USERNAME&amp;gt;\AppData\Roaming\Apple computer\Logs\CrashReporter/MobileDevice/&amp;lt;DEVICE_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;code&gt;AppData&lt;/code&gt; folder is hidden by default, so here&amp;rsquo;s how to access it. Get into your personal folder:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://aplus.rs/images/2009/1.png&#34; alt=&#34;User folder, with Vista folder path&#34;&gt;&lt;/p&gt;
&lt;p&gt;Now click on the folder (address) bar which will change the display into Windows folder path and add &lt;code&gt;\AppData&lt;/code&gt; to it, then click Enter.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://aplus.rs/images/2009/21.png&#34; alt=&#34;When clicked, the address bar changes into regular Windows folder path&#34;&gt;&lt;/p&gt;
&lt;p&gt;This will then show the folder contents. From here, you can follow the path above until you get to the crash logs.&lt;/p&gt;
&lt;p&gt;For Windows 7, follow the same procedure.&lt;/p&gt;
&lt;h3 id=&#34;windows-xp&#34;&gt;Windows XP&lt;/h3&gt;
&lt;p&gt;Location is here:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;C:\Documents and Settings\&amp;lt;USERNAME&amp;gt;\Application Data\Apple computer\Logs\CrashReporter/&amp;lt;DEVICE_NAME&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;USERNAME&gt; is your login username. &lt;code&gt;Application Data&lt;/code&gt; folder is usually hidden by default, so you need to reveal it in the same way as in Vista &amp;ndash; by typing in and pressing Enter.&lt;/p&gt;
&lt;p&gt;And that&amp;rsquo;s it. Easy :) - rest is for developer to sweat it.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>