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

Missing import in MQTTWebsocketTransport #602

Open
AlexanderAlbertPinestack opened this issue Nov 17, 2021 · 1 comment
Open

Missing import in MQTTWebsocketTransport #602

AlexanderAlbertPinestack opened this issue Nov 17, 2021 · 1 comment

Comments

@AlexanderAlbertPinestack

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

@ckrey
Copy link
Contributor

ckrey commented Nov 17, 2021

workaround described here #596

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

2 participants