I am trying to use Firebase in my iOS app. I have installed the SDK using cocoapods as incstructed by Firebase’s docs (here)
However, when I build by app I face an error of conditional binding in the source files of firebase as shown in the picture below.
I tried to edit these files and reran the building process. But the problem is that this issue is in hundreds of files and certainly changing each line manually is not the solution.
2
Answers
Solution: The issue was with the versions of Firebase and Xcode. Firebase has officially dropped support for older versions of Xcode (e.g. 13 or 14) and I am using 13.3
Firebase has added the shorthand syntax for optional binding with if-let but older Xcode was complaining about it. I used 8.13.0 version of Firebase (
pod 'Firebase', '8.13.0'
) with Xcode 13.3 and now its working without any complains.Some helpful links:
Recent versions of Firebase require at least Xcode 15.2