Skip to content

Doesn't call canInitWithRequest on NSURLProtocol #633

@mapierce

Description

@mapierce

Running PINRemoteImage version 3.0.3 on Xcode 15 and I noticed when I was attempting to stub image loading for tests that the function + (BOOL)canInitWithRequest:(NSURLRequest *)request; in the NSURLProtocol is not called.

This function is hit when running PINRemoteImage on Xcode 14, and is critical for us in testing and stubbing image loading with PINRemoteImage. Does anyone have any insight as to why this is the case and how to rectify it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions