Skip to content

Anyone else having this problem: Swift Compiler Error (Xcode): Value of optional type '(any StorageProvider)?' must be unwrapped to refer to member 'storage' of wrapped base type 'any StorageProvider' #12432

Answered by Azrael07
wantroba asked this question in Q&A
Discussion options

You must be logged in to vote

If anyone stumbles across this issue follow these steps:

1- update all your firebase and firestore related packages in pubspec.yaml
2- cd iOS -> pod install --repo-update or pod update Firebase/CoreOnly
3- pod install
4- flutter clean
5- flutter pub get
6- flutter run

Also make sure you are on latest flutter/dart version and your cocoapods version is upto date as well.

Happy Coding :)

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Azrael07
Comment options

Answer selected by wantroba
@wantroba
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants