jicang / healywatch_reactive

ff
0 stars 3 forks source link

Error when build example app #24

Closed aBuder closed 2 years ago

aBuder commented 2 years ago
The plugin `flutter_nordic_dfu` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
Launching lib/main.dart on iPhone von Alexander in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: CE5WFJZUPT
Running pod install...
Running Xcode build...
Xcode build done.                                            4,3s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[81701]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x2098dbb78) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x116eec2c8). One of the two will be used. Which one is undefined.
    objc[81701]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x2098dbbc8) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x116eec318). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/ReactiveBle/Central.swift:230:15: error: initializer for conditional binding must have Optional type, not 'CBPeripheral'
            guard let peripheral = characteristic.service.peripheral
                  ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/ReactiveBle/Central.swift:255:15: error: initializer for conditional binding must have Optional type, not 'CBPeripheral'
            guard let peripheral = characteristic.service.peripheral
                  ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/ReactiveBle/Central.swift:273:52: error: cannot use optional chaining on non-optional value of type 'CBService'
            guard let response = characteristic.service?.peripheral?.writeValue(value, for: characteristic, type: .withoutResponse)
                                 ~~~~~~~~~~~~~~~~~~~~~~^

    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/ReactiveBle/Central.swift:273:64: error: cannot use optional chaining on non-optional value of type 'CBPeripheral'
            guard let response = characteristic.service?.peripheral?.writeValue(value, for: characteristic, type: .withoutResponse)
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/ReactiveBle/Tasks/CharacteristicNotify/CharacteristicNotifyTaskController.swift:14:15: error: initializer for conditional binding must have Optional type, not 'CBPeripheral'
            guard let peripheral = characteristic.service.peripheral
                  ^                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/abuder/.pub-cache/hosted/pub.dartlang.org/reactive_ble_mobile-4.0.1/ios/Classes/BleData extras/QualifiedCharacteristic.swift:17:49: error: cannot use optional chaining on non-optional value of type 'CBService'
                peripheralID: characteristic.service?.peripheral.identifier ?? PeripheralID(uuid: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0))
                              ~~~~~~~~~~~~~~~~~~~~~~^

    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

Could not build the precompiled application for the device.

Error launching application on iPhone von Alexander.