Skip to content

Known issue with CBCentralManager initialization #610

@pilmen

Description

@pilmen

@ #602 When try to init CBCentralManager with option CBCentralManagerOptionRestoreIdentifierKey (CBCentralManager(delegate: <CBCentralManagerDelegate?>, queue: <DispatchQueue?>, options: <[String : Any]?>)) you getting crash:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<CBCentralManager: 0x600002a73c40> has provided a restore identifier but the delegate doesn't implement the centralManager:willRestoreState: method'
I believe it happens because at the moment of initialization CBCentralManager calling delegate method centralManager:willRestoreState: if this key present. But we don't actually have delegate passed as a parameter at time of initialization. @tonyarnold @srdanrasic Do you have any suggestions how can I fix it? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions