rn-native-mqtt icon indicating copy to clipboard operation
rn-native-mqtt copied to clipboard

Build error - iOS

Open KrunalXpress opened this issue 5 years ago • 14 comments

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

KrunalXpress avatar Jun 16 '20 07:06 KrunalXpress

I'm getting the same issue

 "react": "16.11.0",
 "react-native": "0.62.2",

bmeverett avatar Jul 17 '20 22:07 bmeverett

Same problem here

dev-marceloborba avatar Aug 07 '20 17:08 dev-marceloborba

Same problem

FrozenPyrozen avatar Nov 26 '20 14:11 FrozenPyrozen

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

"react": "16.13.1",
"react-native": "0.63.3",

FrozenPyrozen avatar Nov 26 '20 14:11 FrozenPyrozen

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

FrozenPyrozen avatar Dec 08 '20 15:12 FrozenPyrozen

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

dpyeates avatar Dec 16 '20 09:12 dpyeates

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

averypelle avatar Jan 26 '21 18:01 averypelle

@davesters any updates on this? Any workaround?

Victor-Varghese avatar Mar 19 '21 03:03 Victor-Varghese

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

shyam-bihari avatar Mar 31 '21 05:03 shyam-bihari

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

Victor-Varghese avatar Mar 31 '21 05:03 Victor-Varghese

Does anyone resolve the problem?

semr9 avatar Apr 28 '21 22:04 semr9

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

unixbigot avatar Jun 03 '21 01:06 unixbigot

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

konradcho avatar Jun 23 '21 19:06 konradcho

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

FrozenPyrozen avatar Oct 26 '21 20:10 FrozenPyrozen