You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value of optional type 'ConsentConfigurable?' must be unwrapped to refer to member 'consentStatus' of wrapped base type 'ConsentConfigurable' In Migrator.swift
#10
Open
pawarn opened this issue
Jun 10, 2021
· 4 comments
@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.
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'
The text was updated successfully, but these errors were encountered: