Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix symbolicatecrash

mdfind の結果が2つ以上あるときは、Archive を優先するようにした
  • Loading branch information...
commit cc028a8be5ffa00f18064eecaaace02061aaa1e9 1 parent b618f09
@tmurakam authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 util/symbolicatecrash
View
15 util/symbolicatecrash
@@ -206,19 +206,32 @@ sub getSymbolPathFor_dsymUuid{
$dsymdir = quotemeta($dsymdir); # quote the result to handle spaces in path and executable names
print STDERR "dsym directory: $dsymdir\n" if $opt{v};
+ # Murakami modified : dsymdir が2個見つかった場合の処理
+ # .xcarchive だけを残す
+ if ($dsymdir =~ /([^\n]+\.xcarchive)/) {
+ $dsymdir = $1;
+ print STDERR "@ Choose dsymdir : $dsymdir\n";
+ }
+
# Murakami modified : Xcode4 archive 対応
my @executablePath;
my $executable;
if ($dsymdir =~ /\.xcarchive$/) {
+ print STDERR "@ Try to get executable in dsymdir : $dsymdir\n";
+
# executable の名前を取得する
my @tmpdirs = glob "$dsymdir/dSYMs/*.dSYM";
+ my $tmpdirsize = @tmpdirs;
+ if ($tmpdirsize == 0) {
+ return undef;
+ }
$tmpdirs[0] =~ /(.*)\/(.*).dSYM/;
$executable = $2;
$executable =~ s/\..*//g; # strip off the suffix, if any
- print STDERR "Executable: $executable\n\n" if $opt{v};
+ print STDERR "@ Executable found : $executable\n\n" if $opt{v};
# executable のパスを取得する
@executablePath = glob "$dsymdir/Products/Applications/$executable.app/$executable";
Please sign in to comment.
Something went wrong with that request. Please try again.