flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

[storage] Cannot compile

Open InShad7 opened this issue 8 months ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Which plugins are affected?

No response

Which platforms are affected?

iOS

Description

when I run my flutter project on Xcode I get this error

  Swift Compiler Error (Xcode): Implicit use of 'self' in closure; use 'self.' to make capture semantics explicit
/Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageDownloadTask.swift:127
:13


 Swift Compiler Error (Xcode): Reference to property 'pageSize' in closure requires explicit use of 'self' to
 make capture semantics explicit
 /Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageListTask.swif
 t:94:13


 Swift Compiler Error (Xcode): Reference to property 'previousPageToken' in closure requires explicit use of
 'self' to make capture semantics explicit
 /Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageListTask.swif
 t:98:13

Could not build the application for the simulator. Error launching application on iPhone 14 Pro.

but in android it works perfectly

Reproducing the issue

these are the file I got errors

    ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageListTask.swift

   ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageDownloadTask.swift

Firebase Core version

3.1.0

Flutter Version

3.22.2

Relevant Log Output

Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running pod install...                                            167.1s
Running Xcode build...                                                  
Xcode build done.                                           400.5s
Failed to build iOS app
Swift Compiler Error (Xcode): Implicit use of 'self' in closure; use 'self.' to make capture semantics explicit
/Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/StorageDownloadTask.swift:127
:13


Swift Compiler Error (Xcode): Reference to property 'pageSize' in closure requires explicit use of 'self' to
make capture semantics explicit
/Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageListTask.swif
t:94:13


Swift Compiler Error (Xcode): Reference to property 'previousPageToken' in closure requires explicit use of
'self' to make capture semantics explicit
/Users/admin/Desktop/munjiya_ios/ios/Pods/FirebaseStorage/FirebaseStorage/Sources/Internal/StorageListTask.swif
t:98:13


Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.

Flutter dependencies

firebase_storage: 12.0.1 firebase_core: 3.1.0 firebase_messaging: 15.0.1

Additional context and comments

No response

InShad7 avatar Jun 15 '24 08:06 InShad7