Symbolicatecrash in iPhone SDK 3.2 beta 2 returns error: Error: can't parse OS Version string iPhone OS 3.1.2
<p>in the latest symbolicatecrash for iPhone SDK 3.2 beta 2, i'm getting the error Error: can't parse OS Version string iPhone OS 3.1.2 when trying to symbolicate crash logs build on older crashlog formats.</p>

<p>the latest symbolicate crash has introduced a build and version string for the OS version. For older versions of the crash log, you will need to edit symbolicate crash to retain the older regex logic.</p>

<p>modify the following subroutine:</p>

<pre><code>sub parse_OSVersion {
    my ($log_ref) = @_;
    my $section = parse_section($log_ref,'OS Version');
    if ( $section =~ /\s([0-9\.]+)\s+\(Build (\w+)/ ) {
            return ($1, $2)
    }
    if ( $section =~ /\s([0-9\.]+)\s+\((\w+)/ ) {
            return ($1, $2)
    }
    die "Error: can't parse OS Version string $section";
}
</code></pre>

<p>to the following:</p>

<pre><code>sub parse_OSVersion {
    my ($log_ref) = @_;
    my $os = parse_section($log_ref,'OS Version');
    $os =~ /\(Build (\w+)/
      || $os =~ /\((\w+)\)/; # new format
    return $1;
}
</code></pre>

<p>That solved the issue for me</p>
