forked from chrispix/symbolicatecrash-fix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsymbolicatecrash.diff.txt
67 lines (67 loc) · 2.16 KB
/
symbolicatecrash.diff.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
208a209,212
> my $pathToDsym;
> my $dsymBaseName;
> my $executable;
>
210,213c214,232
< $dsymdir =~ /(.*)\/(.*).dSYM/;
< my $pathToDsym = $1;
< my $dsymBaseName = $2;
< my $executable = $dsymBaseName;
---
> if ($dsymdir =~ /(.*)\/(.*).dSYM/) {
> $pathToDsym = $1;
> $dsymBaseName = $2;
> $executable = $dsymBaseName;
> } else {
> print STDERR "No match for dsymdir\n\n" if $opt{v};
> my @files = glob("$dsymdir/*/*");
> my $file;
> foreach $file (@files) {
> print STDERR "$file\n";
> if ($file =~ /(.*)\/(.*).dSYM$/) {
> print STDERR "using $file\n";
> $pathToDsym = quotemeta($1);
> $dsymBaseName = $2;
> $executable = $dsymBaseName;
> last;
> }
> }
> }
220a240,242
> print STDERR "pathToDsym: $pathToDsym\n" if $opt{v};
> print STDERR "dsymBaseName: $dsymBaseName\n" if $opt{v};
> print STDERR "executable: $executable\n" if $opt{v};
230,232c252,269
< $_ =~ s/\/$//;
< chomp($_);
< $_ = $_."/".$executable;
---
> $_ =~ s/\/$//;
> chomp($_);
> if ($_ =~ /.*.xcarchive/) {
> my $path = quotemeta("$_");
> $path = $path."/*/*/*/$executable";
> print STDERR "searching $path\n" if $opt{v};
> my @files = glob("$path");
> my $file;
> foreach $file (@files) {
> print STDERR "Found $file\n" if $opt{v};
> }
> if (@files) {
> $_ = $files[0];
> print STDERR "Found executable in .xcarchive: $_\n" if $opt{v};
> }
> } else {
> $_ = $_."/".$executable;
> }
246,247c283,284
< print STDERR "Executable name: $exec\n\n" if $opt{v};
< print STDERR "UUID doesn't match dsym for executable $exec\n" if $opt{v};
---
> print STDERR "Executable name: $exec\n" if $opt{v};
> print STDERR "UUID doesn't match dsym for executable $exec\n\n" if $opt{v};
267c304
< print STDERR "## $path doesn't exist " if $opt{v};
---
> print STDERR "## $path doesn't exist \n" if $opt{v};