I’m trying to build a project using Firebase storage with Flutter, and I’m facing this error.
Swift Compiler Error (Xcode): Value of optional type '(any StorageProvider)?' must be unwrapped to refer to member 'storage' of wrapped base type 'any StorageProvider'
/Users/habuiduc/Development/MobileDev/Flutter/storage_bugs/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:72:11
Storage.swift:72
Swift Compiler Error (Xcode): Value of optional type '(any StorageProvider)?' must be unwrapped to refer to member 'storage' of wrapped base type 'any StorageProvider'
/Users/habuiduc/Development/MobileDev/Flutter/storage_bugs/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:87:11
Storage.swift:87
Swift Compiler Error (Xcode): Cannot assign value of type '(any AuthInterop)?' to type 'any AuthInterop'
/Users/habuiduc/Development/MobileDev/Flutter/storage_bugs/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:296:38
Storage.swift:296
Swift Compiler Error (Xcode): Cannot assign value of type '(any AppCheckInterop)?' to type 'any AppCheckInterop'
/Users/habuiduc/Development/MobileDev/Flutter/storage_bugs/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Storage.swift:298:46
I searched this error and have tried many ways such as using flutter clean or removing and reinstalling the pub folder. I also tried to put this line of code $FirebaseSDKVersion = ‘10.22.0’ inside the Podfile, however, nothing worked.
Are there any ways to fix my problem.