PeelTechnologies / react-native-tcp

node's net api in react-native
MIT License
284 stars 213 forks source link

'React/RCTAssert.h' file not found #91

Open msert29 opened 5 years ago

msert29 commented 5 years ago

I've successfully ejected from an EXPO app and but whenever I link the react-native-tcp package, I always get the following error:

'React/RCTAssert.h' file not found

Is anyone else facing the same issue? I've added Header Search path but no luck.

marcusleeeugene commented 5 years ago

Hey, just wondering if you managed to find a solution to this problem? I came across the same issue and spent the entire day trying all sorts of solution to find the missing header files but they all don't work for me...

marcusleeeugene commented 5 years ago

I just found the solution!!! Follow the marked answer in this SO link. https://stackoverflow.com/questions/41663002/react-rctbridgemodule-h-file-not-found/51226962

iinewmanii commented 5 years ago

I also have this problem. The stackoverflow link did not solve it.

OzkanAbdullahoglu commented 5 years ago

this problem is obviously how to link the native module to the xcode after ejecting. I assume that you use cocoapods so try to add below path to your pod file ( after react-native link react-native-tcp)

pod 'TcpSockets', :path => '../node_modules/react-native-tcp' Then try , pod deintegrate pod install --repo-update

592da commented 5 years ago

@OzkanAbdullahoglu tried to do the exact thing, it says no podspec found

danilowoz commented 5 years ago

@592da Did you run those command in ios folder?