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 601 forks source link

Swift 5.1 Support #317

Open piersebdon opened 4 years ago

piersebdon commented 4 years ago

New Issue Checklist

Environment

Issue Description

Xcode and Swift 5,1 have both been shipped recently and it would be great to get support added for Swift 5.1.

The project that I am working on using OHHTTPStubs is working in Swift5.0 and Xcode 10.3 but not in Xcode 11 and Swift 5.1

jeffctown commented 4 years ago

@piers12 - I believe this may be resolved. Versions 8 and 9 both support Xcode 11 and swift 5.x. Let me know if you see otherwise.

msavula commented 4 years ago

it does work with Carthage integration, but doesn't with spm. Xcode 11.4

rockebee commented 4 years ago

@jeffctown Following this topic up, I also get same error message with Carthage and OHHTTPStubs v8.0. Unfortunately I'm not able to refactor code to v9.0 at the moment, but as a general question: Is there a chance to create builds with BUILD_LIBRARIES_FOR_DISTRIBUTION=yes in order to ensure module stability across newer Swift releases? (feature had been introduced with Swift 5.1 last year)

Ideally not only the newer v9, but also a version 8.0.1 could be provided ...?!

Thanks for support!

SeanAshley5 commented 4 years ago

New Issue Checklist

Environment

  • version of OHHTTPStubs: 6.2.0
  • integration method you are using:

    • [x ] Cocoapods
    • [ x] Carthage
    • [ ] submodule
    • [ ] other
  • version of the tool you use: 1.7.5

Issue Description

Xcode and Swift 5,1 have both been shipped recently and it would be great to get support added for Swift 5.1.

The project that I am working on using OHHTTPStubs is working in Swift5.0 and Xcode 10.3 but not in Xcode 11 and Swift 5.1