Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase iOS Swift Authentication API_UNAVAILABLE(macCatalyst) problem

I've just used identical procedures to those that were working a few weeks ago on an earlier app using Firebase Authentication in iOS/Swift. I've just added authentication code after configuring app, registering app, downloading & performing proper updates with the GoogleService-Info.plist, etc.

When I run, I get an error in OIDExternalUserAgentIOSCustomBrowser.h on the line:

API_UNAVAILABLE(macCatalyst) // currently 38

stating it "expected ;"

Did a quick cross-ref of this Google code with code that worked & loaded via CocoaPods a few weeks ago, and there's no mention of macCatalyst in that code.

Any thoughts on what's up or suggested workarounds?

like image 917
Gallaugher Avatar asked Nov 24 '19 23:11

Gallaugher


1 Answers

I tried adding pod 'AppAuth','~> 1.2.0' and it at least compiled for me. I'm going to do some more testing but as a "fix" for now this seems to work.

-Edit Seems to be working fine now :) Hopefully they get the new version of AppAuth fixed, but it seems like 1.2.0 works well.

like image 132
Chad Wilson Avatar answered Oct 04 '22 18:10

Chad Wilson