shehankonecranes / sp-react-native-mqtt

MQTT Client native module for react-native
68 stars 55 forks source link

'MQTTClient/MQTTClient.h' file not found #33

Open jackviatick opened 1 year ago

jackviatick commented 1 year ago

'MQTTClient/MQTTClient.h' file not found. I'm getting this error when trying to implement the lib to IOS side. I tried manual link but still get the same error.

zeemyself commented 1 year ago

If you use_framework inside pod then add s.dependency "MQTTClient" at node_modules/sp-react-native-mqtt/sp-react-native-mqtt.podspec

maybe consider using patch-package so you don't have to manual add everytime

umangloria commented 1 year ago

Same issue with a fresh project as well, Not able to find any working solution. please let me know if there is any fix for this.

umangloria commented 1 year ago

Found the issue, silly me!! I forgot to add pod 'MQTTClient' inside podfile as mentioned in the documentation. Ref. step 3.