Skip to content

Problem running on ios13 #9

@glingle05

Description

@glingle05

I get the following crash when trying this on iOS 13 when trying to use with
Bluefruit LE B9D3:
Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /.../Developer/AdaFruit-Basic-Chat/Basic Chat/BLECentralViewController.swift, line 259 2019-09-26 19:17:29.303876-0700 Basic Chat[327:17526] Fatal error: Unexpectedly found nil while unwrapping an Optional value: file /.../Developer/AdaFruit-Basic-Chat/Basic Chat/BLECentralViewController.swift, line 259

This code was used as a template for our application and we're experiencing
the same issue. The real problem seems to be that the error argument is populated and not checked. The error.localizedDescription is "Reading is not permitted."

I have tested connecting to my BlueFruit with the LE Connect app - worked just fine. I can send request string and get expected data stream (lines of temperture data) back.

Testing was done on a brand new iPad Mini running latest iOS 13.1.
I had to add new required bluetooth purpose string, NSBluetoothAlwaysUsageDescription in info.plist.

Any help / updates appreciated.
Thanks!
Glenn

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