title: No known class method for selector 'name'
body: <p><a href="https://i.stack.imgur.com/5nYt5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5nYt5.jpg" alt="enter image description here"></a>I have two files, one that's called CodeInjection.m with the content like</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import "Someheaderfile.h"
  
  
  @interface CodeInjection: NSObject
  @end
  
  @implementation CodeInjection
  
  static void __attribute__((constructor)) initialize(void){
      NSLog(@"==== Code Injection in Action====");
      [[CodeInjectionSwift shared] performTask];
  }
  
  @end
  </code></pre>
  
  <p>Then I have a CodeInjectionSwift.swift file with content</p>
  
  <pre><code>import Foundation
  import NetworkInterceptor
  
  @objc class CodeInjectionSwift: NSObject {
      @objc public static let shared = CodeInjectionSwift()
  
      override private init(){}
  
      @objc func performTask(){
          let requestSniffers: [RequestSniffer] = [
              RequestSniffer(requestEvaluator: AnyHttpRequestEvaluator(), handlers: [
                  SniffableRequestHandlerRegistrable.console(logginMode: .nslog).requestHandler()
                  ])
          ]
  
          let requestRedirectors: [RequestRedirector] = [
              RequestRedirector(requestEvaluator: DomainHttpRequestEvaluator(domain: "www.antennahouse.com"), redirectableRequestHandler: AlternateUrlRequestRedirector(url: URL(string: "https://www.rhodeshouse.ox.ac.uk/media/1002/sample-pdf-file.pdf")!))
          ]
  
          let networkConfig = NetworkInterceptorConfig(requestSniffers: requestSniffers,
                                                       requestRedirectors: requestRedirectors)
          NetworkInterceptor.shared.setup(config: networkConfig)
          NetworkInterceptor.shared.startRecording()
      }
  }
  </code></pre>
  
  <p>When trying to use "CodeInjectionSwift", I get errors like this</p>
  
  <p><a href="https://i.stack.imgur.com/oJTa9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oJTa9.png" alt="enter image description here"></a></p>