Skip to content

Missing import in MQTTWebsocketTransport #602

@AlexanderAlbertPinestack

Description

Short description

In the file MQTTWebsocketTransport.m the compiler complains that it can't find 'SR_SSLPinnedCertificates' on NSMutableURLRequest. After adding #import "NSURLRequest+SRWebSocket.h" it works.

Environment

  • Operating system: iOS
  • Software version:
    • xCode: 13.0
    • macOS: 11.6
  • Package Manager: Cocoapods
  • MQTTClient version: 0.15.2
  • MQTT Broker used: MQTTClient/Websocket, SocketRocket, CocoaAsyncSocket, nanopb (don't know which one you are using, but that's the one imported by Cocoapods)

Steps to reproduce

  1. create new project
  2. import pod 'MQTTClient', '0.15.2'
  3. import pod 'MQTTClient/Websocket', '0.15.2'
  4. Setup everything
  5. Build project

Expected behaviour

Project builds

Actual behaviour

Project does not build because Compiler complains 'SR_SSLPinnedCertificates' not found on NSMutableURLRequest

Other information

importing "NSURLRequest+SRWebSocket.h" to the "MQTTWebsocketTransport.m" file fixes the issue

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