-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler warnings: using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead #247
Comments
Hi @bobergj, Thanks for letting us know about this. We haven't yet seen these warnings ourselves and are thinking that this deprecation check may have been introduced in Xcode 12.5. I have noted this issue on our backlog and we will address it in an upcoming SDK release. Cheers, Filed internally as 110317. |
Yes, this deprecation warning is introduced in Swift 5.4 which shipped in Xcode 12.5 |
## [5.4.2] - 2021-06-17 ### Fixed - Update `Package.swift` to use SwiftPM tools version 5.2. This prevents test dependencies from being included transitively. (Thanks, [@escakot](#234)!) - Update `Quick` test dependency to 3.1.2 to avoid build warnings and adopt security fixes. ([#243](#243)) - Use `AnyObject` over `class` in protocol inheritance to avoid compiler warnings. ([#247](#247)) - Improve CI to test against multiple supported Xcode and Swift language versions. - Restored test suite compatibility with Xcode 11.4 and Swift 5.2.
Hi @bobergj, We've included a fix for this issue in the 5.4.2 release. Thanks for reporting it! Thanks, |
Is this a support request?
No
Describe the bug
Compiler warnings: "warning: using 'class' keyword for protocol inheritance is deprecated; use 'AnyObject' instead" when linking the LaunchDarkly Swift package.
To reproduce
import LaunchDarkly
somewhere in app targetExpected behavior
No compiler warnings from LaunchDarkly that pollute our build log
Logs
SDK version
5.3.2, but the issues occur in the latest code as well:
https://github.com/launchdarkly/ios-client-sdk/blob/v5/LaunchDarkly/LaunchDarkly/Networking/DarklyService.swift#L15
https://github.com/launchdarkly/ios-client-sdk/blob/v5/LaunchDarkly/LaunchDarkly/Networking/DarklyService.swift#L22
Language version, developer tools
Xcode Version 12.5 (12E262)
OS/platform
macOS 11.2.3 (20D91)
Additional context
N/A
The text was updated successfully, but these errors were encountered: