Xcode 14 - Warnings related to iOS 11 support (Swift Package Manager)#610
Conversation
|
Hi, thank you! How does this compile though? Shouldn't there be a plain |
|
I don't think it's needed to provide all if alternatives to be compilable. I did tested it in a custom project, I will test it on the example SPM in the repo, just in case. |
|
An unexpected problem, example SPM project uses Reflex (I just learned this existed) instead of Flex package. To check that it was working, in my fork I've updated example SPM project in branch update-example to use a local Flex package, which uses SPM from the local repo (it uses a relative path), instead of resolving to GitHub |
|
I guess it's not technically required since it will compile as long as you're using swift 5 at least, but for clarity's sake, can we change the else to just an |
|
Yes, of course. Tested and pushed. |
|
Hi, I've updated branch with latests commits. It's still in good shape. |
|
I missed your reply, whoops! Thank you! Merging now |
Hi,
I would like to contribute fixing a recent warning.
The new Xcode 14 uses iOS SDK 11.0 as base, and compiling in this Xcode shows a warning.
Handle this restriction relying on swift version.
Regards and comments welcomed