p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 276 forks source link

Mac support #326

Closed telipskiy closed 4 years ago

telipskiy commented 4 years ago

Hi, when I try to run my app with checked Mac target on Mac OS 10.15 I got an error, seems SFAuthenticationSession is not supported by Mac Catalyst.

Do you have any plans to add this support?

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_SFAuthenticationSession", referenced from:
      objc-class-ref in OAuth2Authorizer+iOS.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
telipskiy commented 4 years ago

Just created pull request for this issue. Small if-target scope added https://github.com/p2/OAuth2/pull/328