davesters / rn-native-mqtt

An MQTT client for React Native that actually works and exposes a simple Javascript interface
MIT License
64 stars 44 forks source link

Build error - iOS #11

Open KrunalXpress opened 4 years ago

KrunalXpress commented 4 years ago

Getting this error after adding swift file and adding a bridging header.

Screenshot 2020-06-16 at 12 55 28 PM

My project looks like this -

Screenshot 2020-06-16 at 1 03 11 PM

Content of MQTTBridge.swift import Foundation

Content of Project-Bridging-Header.h `#ifndef project_Bridging_Header_h

define project_Bridging_Header_h

endif

`

Pls help

bmeverett commented 4 years ago

I'm getting the same issue

 "react": "16.11.0",
 "react-native": "0.62.2",
dev-marceloborba commented 4 years ago

Same problem here

FrozenPyrozen commented 3 years ago

Same problem

FrozenPyrozen commented 3 years ago

@davesters can you fix it or do you have some suggestions?

"react": "16.13.1",
"react-native": "0.63.3",
FrozenPyrozen commented 3 years ago

@256hz can you suggest what to do with that error? image

dpyeates commented 3 years ago

Getting the same errors as the screen shot above. Has anyone had any success in resolving?

averypelle commented 3 years ago

Also experiencing this issue. @davesters Any advice on a fix? For others in this thread, what XCode version and macOS version are you on? I am experiencing this on XCode 12.3 and macOS 11.1 Big Sur

Victor-Varghese commented 3 years ago

@davesters any updates on this? Any workaround?

shyam-bihari commented 3 years ago

I'm facing same error, Do anyone have suggestion to solve it, @KrunalXpress @Victor-Varghese @averypelle

Victor-Varghese commented 3 years ago

I couldn't make this library work, i moved on to https://github.com/AnxiousDarkly/react-native-mqtt as this was the only library that connected with auth and SSL

semr9 commented 3 years ago

Does anyone resolve the problem?

unixbigot commented 3 years ago

I'm still struggling with it. The branch from @FrozenPyrozen works for me on android, but won't compile on ios. I've collected some fixes from various branches but there's one last build error I can't get past. https://github.com/accelerando-consulting/rn-native-mqtt

konradcho commented 3 years ago

In Project(NOT TARGET) Build Settings -> Library Search Paths - remove "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"

Then in Pod Settings for react-native-native-mqtt -> Build Phases -> Compile Sources - remove 2 files: - GDCAsyncSocket.m - GDCAsyncUdpSocket.m

FrozenPyrozen commented 3 years ago

Updated my fork of this lib with working iOS build https://github.com/FrozenPyrozen/rn-native-mqtt