alinz / react-native-webview-bridge

React Native Webview with Javascript Bridge
MIT License
1.37k stars 493 forks source link

Build failed after select `libReact-Native-Webviwe-Bridge.a` and click `Add` button. #260

Open chinalwb opened 6 years ago

chinalwb commented 6 years ago

Build failed after select libReact-Native-Webviwe-Bridge.a and click Add button. Remove the link build will be OK.

BUILD FAILED The following build commands failed:

CompileC /Users/wliu/Documents/Tech/RN/wb/ios/build/Build/Intermediates.noindex/React-Native-Webview-Bridge.build/Debug-iphonesimulator/React-Native-Webview-Bridge.build/Objects-normal/x86_64/RCTWebViewBridgeManager.o RCTWebViewBridgeManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

My project is React Native 0.55.3

ethanyuwang commented 6 years ago

having the same issue

alekspickle commented 6 years ago

As am I. Any one tend to solve it?

steelegg commented 6 years ago

我也遇到了这个问题

daxiangaikafei commented 6 years ago

open Libraries and find React-Native-Webview-Bridge.xcodeproj 1、remove #import <React / RCTView.h> from RCTView.h 2、modify #import <React / RCTViewManager.h> to #import "RCTViewManager.h" from RCTUIManager.h 3、modify #import "RCTBridge.h" to #import "React / RCTBridge.h" from RCTWebViewBridgeManager.m 4、modify #import "RCTLog.h" to #import "React / RCTLog.h" from RCTWebViewBridge.m

build success!

zhephree commented 5 years ago

I'm having this same issue but the above solution does not work. It could be that I'm not following it correctly. There's no RCTView.h in the webview bridge project