p2 / OAuth2

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

Use of unresolved identifier 'OAuth2Authorizer/OAuth2CustomAuthorizer' on WatchOS #325

Open RolandasRazma opened 4 years ago

RolandasRazma commented 4 years ago

Added to WatchOS target using swift PM, but getting "Use of unresolved identifier 'OAuth2Authorizer'/OAuth2CustomAuthorizer" error

/OAuth2/Sources/Flows/OAuth2.swift:80:16: Use of unresolved identifier 'OAuth2Authorizer' /OAuth2/Sources/Flows/OAuth2PasswordGrant.swift:70:61: Use of unresolved identifier 'OAuth2CustomAuthorizer'

ossus-lib commented 4 years ago

There is no watchOS target as of today indee.

dfrobese commented 3 years ago

I have the same problem and it looks like it is caused by the inclusion of "watchOS" at the platform section in the package.swift file. Because OAuth2 does not support watchOS it has to be removed.