Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jopiek opened this issue Jun 24, 2013 · 7 comments

Comments

@jopiek
Copy link

jopiek commented Jun 24, 2013

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?!

@ghost
Copy link

ghost commented Oct 24, 2013

Yea I wonder when redbearlab can release a new BLE_Framework for iOS7. I have problem on both the UUID deprecated and the "isConnect" deprecated.

@kevinpk
Copy link

kevinpk commented Nov 3, 2013

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

@jopiek
Copy link
Author

jopiek commented Nov 3, 2013

Thanks!

Greets Johan

Op 3 nov. 2013, om 16:29 heeft kevinpk [email protected] 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.

@ghost
Copy link

ghost commented Mar 10, 2014

Yeah it helped thanks a lot

@hayesmp
Copy link

hayesmp commented Jun 9, 2014

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.

@sunnycyk
Copy link

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

@afarber
Copy link

afarber commented Jan 3, 2015

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants