AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.03k stars 602 forks source link

Xcode 14 - Warnings related to iOS 11 support (Swift Package Manager) #352

Closed kikeenrique closed 5 months ago

kikeenrique commented 2 years ago

Checklist

Description

Hi, I would like to contribute fixing a recent warning.

The new Xcode 14 uses next SDKs as base: iOS 11.0, macOS 10.13, watchOS 4.0 and tvOS 11.0. Compiling in this Xcode shows a warning. Handle this restrictions relying on swift version (which is also vinculated to each Xcode version).

Regards and comments welcomed

Motivation and Context

Fixes a warning

Run project tests and compile on each platform.

kikeenrique commented 6 months ago

I think as half of the changes are already included in https://github.com/AliSoftware/OHHTTPStubs/pull/361 this PR could be discarded when the other is merged.

Liquidsoul commented 5 months ago

Thank you for your contribution!

Since #361 was merged I am closing this. If some of these changes are still required, please do not hesitate to open another PR!