Skip to content

BLE_Framework/BLE.m:466:20: 'UUID' is deprecated: first deprecated in iOS 7.0 #5

Open

Description

@jopiek

Well, look at that... Apple seems to be getting rid of the UUID? Or is it just a compiler glitch? The UUID for CBPeripheral was introduced in iOS 5.

/../../.. ../BLE_Framework/BLE.m:466:20: 'UUID' is deprecated: first deprecated in iOS 7.0

What would be the solution?!

Activity

  1. kevinpk commented on Nov 3, 2013

    @kevinpk

    Johnny,

    Replace

    if(ble.activePeripheral.isConnected)

    with

    if(ble.activePeripheral.state == CBPeripheralStateConnected)

    Sorry I can't help with what to do about UUID being deprecated. I came here to find that out as well!

    Cheers,
    Kevin

  2. jopiek commented on Nov 3, 2013

    @jopiek
    Author

    Thanks!

    Greets Johan

    Op 3 nov. 2013, om 16:29 heeft kevinpk notifications@github.com het volgende geschreven:

    Johnny,

    Replace

    if(ble.activePeripheral.isConnected)

    with

    if(ble.activePeripheral.state == CBPeripheralStateConnected)

    Sorry I can't help with what to do about UUID being deprecated. I came here to find that out as well!

    Cheers,
    Kevin

    —
    Reply to this email directly or view it on GitHub.

  3. hayesmp commented on Jun 9, 2014

    @hayesmp

    The UUID issue makes an App unbuildable in iOS 8.

    It's unfortunate that Apple has flagged this willy-nilly because I think all the are concerned about are you using phone UUIDs in your code.

  4. sunnycyk commented on Oct 30, 2014

    @sunnycyk

    If look at CBPeer.h, I think iOS8 now uses "identifier" which is instance of NSUUID.

  5. afarber commented on Jan 3, 2015

    @afarber

    Maybe: replace UUID by peripheral.identifier.UUIDString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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