OAuthSwift / OAuthSwift

Swift based OAuth library for iOS
MIT License
3.24k stars 591 forks source link

Swift compiler errors - Xcode 13.0 beta 3 #669

Open johnnysay opened 2 years ago

johnnysay commented 2 years ago

Description:

While building with Xcode 13.0 beta 3 I got many compiler errors:

OS (Please fill the version) :

Installation method:

Library version:

Xcode version:

phimage commented 2 years ago

I have never fixed such things but on one of my other project someone talk me about new annotation @available(iOSApplicationExtension, https://github.com/phimage/CallbackURLKit/issues/31

kkebo commented 2 years ago

In addition, according to https://developer.apple.com/documentation/xcode-release-notes/xcode-13-beta-release-notes,

Swift Packages

Resolved in Xcode 13 Beta 3

Linking Swift packages from application extension targets or watchOS applications no longer emits unresolvable warnings about linking to libraries not safe for use in application extensions. This means that code referencing APIs annotated as unavailable for use in app extensions must now themselves be annotated as unavailable for use in application extensions, in order to allow that code to be used in both apps and app extensions. (66928265)

@phimage Do you plan to add that annotation?

phimage commented 2 years ago

PR are welcome