Skip to content

Commit

Permalink
Reload dSym files before symbolicating
Browse files Browse the repository at this point in the history
  • Loading branch information
zqqf16 committed Mar 6, 2017
1 parent 1ce4c79 commit 642695a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions SYM/Dsym.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ class DsymManager {

extension CrashReport {
func fixDsym() -> Bool {
// Reload dSym files
DsymManager.sharedInstance.findAllDsyms()

for (_, image) in self.images {
if let uuid = image.uuid {
image.dSym = DsymManager.sharedInstance.dsym(withUUID: uuid)?.path
Expand Down
4 changes: 1 addition & 3 deletions SYM/Symbolicate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,9 @@ extension SubProcess {

extension CrashReport {
func symbolicate(completion: @escaping (CrashReport)->Void) {
let dSymValidate = self.fixDsym()

switch self.brand {
case .umeng:
if !dSymValidate {
if !self.fixDsym() {
completion(self)
return
}
Expand Down

0 comments on commit 642695a

Please sign in to comment.