AndyQ / NFCPassportReader

NFCPassportReader for iOS 13
MIT License
755 stars 246 forks source link

Memory management crash #31

Closed nemno closed 4 years ago

nemno commented 4 years ago

Hi!

There is a crash: error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x60000001a).

if passportreader read the document, and we had the NFCPassportModel object in the response, and we would like to use for example data group 11

passport.getDataGroup(.DG11)

code satarts like this:

            let dataGroups : [DataGroupId] = [.COM, .DG1, .DG2, .DG7, .DG11, .DG15, .SOD]
            self?.passportReader.readPassport(mrzKey: mrzKey, tags: dataGroups, completed: { (passport, error) 

in completion closure if you want to get the data group 11, it's a crash.

Bests, Norbi

nemno commented 4 years ago

Sorry! Cleaning everything did the trick!