dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
530 stars 194 forks source link

Build error with Xcode 13, iOS 15 SDK #616

Open wxsdmy opened 2 years ago

wxsdmy commented 2 years ago

…/RestoredState.swift:68:105: error: value of optional type 'CBPeripheral?' must be unwrapped to a value of type 'CBPeripheral' peripheral: RxCBPeripheral(peripheral: $0.service.peripheral)), ^ …/MultiplatformBleAdapter/iOS/RxBluetoothKit/RxCBCharacteristic.swift:59:52: error: value of optional type 'CBService?' must be unwrapped to a value of type 'CBService' return RxCBService(service: characteristic.service) ^ peripheral: RxCBPeripheral(peripheral: $0.service.peripheral)),

…/RxCBDescriptor.swift:43:62: error: value of optional type 'CBCharacteristic?' must be unwrapped to a value of type 'CBCharacteristic' return RxCBCharacteristic(characteristic: descriptor.characteristic) ^

Please update MultiPlatformBleAdapter to '0.1.9' version.

freedreamer82 commented 2 years ago

any news ? we should need a version compatible with ios 13!

b055man commented 2 years ago

Try this: https://github.com/dotintent/MultiPlatformBleAdapter/issues/79#issuecomment-945158358

MoralCode commented 2 years ago

it appears that there is a fork of this project explicitly for supporting iOS 15 at https://github.com/davejlin/flutter_ble_lib_ios_15