Skip to content
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

canInitWithRequest not called in Xcode 15 preventing stubbing being setup correctly #363

Open
6 of 9 tasks
mapierce opened this issue Sep 5, 2023 · 0 comments
Open
6 of 9 tasks

Comments

@mapierce
Copy link

mapierce commented Sep 5, 2023

New Issue Checklist

Environment

  • version of OHHTTPStubs: 9.1.0
  • integration method you are using:
    • Cocoapods
    • Carthage
    • submodule
    • other
  • version of the tool you use: Xcode 15

Issue Description

We're using PINRemoteImage and OHHTTPStubs in our project and have notices an anomaly with Xcode 15. It appears that PINRemoteImage doesn't call + (BOOL)canInitWithRequest:(NSURLRequest *)request; on NSURLProtocol in Xcode 15, but does in Xcode 14. After digging through the code of OHHTTPStubs a bit, I can see that this is a critical part of getting stubbing setup correctly, so that makes sense as to why it's not working.

I know this is likely more of an issue for the PINRemoteImage folks, but thought I'd also post here to see if anyone knows of any underlying changes to NSURLSession that shipped with Xcode 15 that could be causing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant