novastone-media / MQTT-Client-Framework

iOS, macOS, tvOS native ObjectiveC MQTT Client Framework
Other
1.84k stars 465 forks source link

Missing import in MQTTWebsocketTransport #602

Open AlexanderAlbertPinestack opened 2 years ago

AlexanderAlbertPinestack commented 2 years ago

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

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 commented 2 years ago

workaround described here #596