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

Library does not compile with Xcode 13 beta/iOS 15 SDK due to CoreBluetooth API changes #41

Closed
zwift-aebling opened this issue Jun 8, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@zwift-aebling
Copy link

A number of inverse relationships in CoreBluetooth (e.g. CBCharacteristic.service) have been changed from unowned(unsafe) to weak, and therefore Optional in the iOS 15 SDK.

This results in numerous compilation errors when attempting use the IOS-CoreBluetooth-Mock library:

~/IOS-CoreBluetooth-Mock/CoreBluetoothMock/Classes/CBMCentralManagerNative.swift:391:51: Value of optional type 'CBService?' must be unwrapped to a value of type 'CBService'
@philips77
Copy link
Member

I love Apple and it's approach to backwards compatibility. Thank you for letting us know! Could you, please, prepare a PR with a fix?

@zwift-aebling
Copy link
Author

Will do!

@ricobeck
Copy link

Did it:
#44

@philips77 philips77 added the bug Something isn't working label Jun 23, 2021
@philips77
Copy link
Member

This should now work on develop branch after #50, #51 and #52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants