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
After updating my dependencies and re-building my flutter & firebase project, I get the following issue:
Swift Compiler Error (Xcode): Reference to generic type 'Array' requires arguments in <...> .../RingBuffer.swift:18:36
More specifically, this is caused because the line case outOfBoundsPush(pushIndex: Array.Index, endIndex: Array.Index) does not specify a type on the Arrays.
The quick-fix, as discussed in stackoverflow is to override the file and change the line to case outOfBoundsPush(pushIndex: Array<Any>.Index, endIndex: Array<Any>.Index), specifying a type and resolving the issue.
My intuition tells me that this is likely a Swift 4 vs Swift 5 problem, even though I had specified to use swift 5.3 in my podfile.
I understand that firebase may no longer be supporting swift 4, regardless, I don't think missing a single type specification should warrant breaking projects that haven't updated.
Swift Compiler Error (Xcode): Reference to generic type'Array' requires arguments in<...>
/Users/redacted/src/ios/Pods/FirebaseCoreInternal/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift:18:36
Swift Compiler Error (Xcode): Reference to generic type'Array' requires arguments in<...>
/Users/redacted/src/ios/Pods/FirebaseCoreInternal/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift:18:59
Swift Compiler Error (Xcode): Cannot infer contextual base in reference to member 'outOfBoundsPush'
/Users/redacted/src/ios/Pods/FirebaseCoreInternal/FirebaseCore/Internal/Sources/HeartbeatLogging/RingBuffer.swift:22:14
If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.
Description
After updating my dependencies and re-building my flutter & firebase project, I get the following issue:
Swift Compiler Error (Xcode): Reference to generic type 'Array' requires arguments in <...> .../RingBuffer.swift:18:36
More specifically, this is caused because the line
case outOfBoundsPush(pushIndex: Array.Index, endIndex: Array.Index)
does not specify a type on the Arrays.The quick-fix, as discussed in stackoverflow is to override the file and change the line to
case outOfBoundsPush(pushIndex: Array<Any>.Index, endIndex: Array<Any>.Index)
, specifying a type and resolving the issue.My intuition tells me that this is likely a Swift 4 vs Swift 5 problem, even though I had specified to use swift 5.3 in my podfile.
I understand that firebase may no longer be supporting swift 4, regardless, I don't think missing a single type specification should warrant breaking projects that haven't updated.
Reproducing the issue
Minimum Reproducible Issue: https://swiftfiddle.com/qhguupd5uvgyhfla6th46ucmxm
Firebase SDK Version
9.4.0
Xcode Version
12.3
Installation Method
CocoaPods
Firebase Product(s)
Authentication, Database, DynamicLinks, Firestore, Storage
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetThe text was updated successfully, but these errors were encountered: