novastone-media / MQTT-Client-Framework

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

"Include of non-modular header inside framework module 'MQTTClient.MQTTClient'" and "Redefinition of xxx" errors on build (Using CocoaPods) #569

Open nrls opened 3 years ago

nrls commented 3 years ago

Short description

When I import the framework with Cocoapods to my Swift project, build fails with "Include of non-modular header inside framework module 'MQTTClient.MQTTClient'" and "Redefinition of 'xxx'" errors, as seen below:

Screen Shot 2020-09-09 at 10 19 08

Environment

Steps to reproduce

Add below line to Podfile and build project: pod 'MQTTClient', '0.15.3'

Other information

If I remove the #import "MQTTClient.h" line from MQTTClient-umbrella.h file, build succeeds and everythings works fine.

pdamonkey commented 3 years ago

This is blocking me from using this framework at the moment which is a real shame.