Open pawarn opened 3 years ago
Thanks @pawarn! We will take a look and get back to you.
@pawarn We are unable to reproduce this on our end, but I am wondering if maybe your Xcode version is a bit older. Swift fixed the double optional unwrapping in a recent compiler release, so is it possible you are building with old build tools/old swift version? Please let us know what version of Xcode you have downloaded.
Another thing to check would be the Swift Language Version in the build settings of yourflutterapp/ios/Runner.xcworkspace
. To do this, open the xcworkspace, click on the project in the top left corner of the project navigator, click on the build settings tab, then search for "language version". You should see Swift 5 there.
Thanks!
@christinasund Thanks for your response I'm using Xcode version 12.4 and Swift version 4
Thanks @pawarn, have you tried updating the yourflutterapp/ios/Runner.xcworkspace
to use Swift 5?
I'm using below flutter and Dart version
Flutter 2.2.1 • channel stable • https://github.com/flutter/flutter.git Framework • revision 02c026b03c (13 days ago) • 2021-05-27 12:24:44 -0700 Engine • revision 0fdb562ac8 Tools • Dart 2.13.1
Tealium Version: tealium: ^2.0.0
Value of optional type 'ConsentConfigurable?' must be unwrapped to refer to member 'consentStatus' of wrapped base type 'ConsentConfigurable'
Chain the optional using '?' to access member 'consentStatus' only for non-'nil' base values
Force-unwrap using '!' to abort execution if the optional value contains 'nil'