Open lhr000lhr opened 7 years ago
react-native没导入?
我也出现了这个问题 步骤:
cd demo
yarn install
react-native link
打开xcode运行真机调试
不好使,iOS运行报出 In file included from /Users/apple/Documents/CWSSurveyIOS/ios/CWSSurveyIOS/AppDelegate.m:14: In file included from /Users/apple/Documents/CWSSurveyIOS/node_modules/react-native-baidu-map/ios/RCTBaiduMap/RCTBaiduMapViewManager.h:12: /Users/apple/Documents/CWSSurveyIOS/node_modules/react-native-baidu-map/ios/RCTBaiduMap/RCTBaiduMapView.h:13:9: fatal error: 'RCTViewManager.h' file not found
修改#import "RCTViewManager.h"为#import <React/RCTViewManager.h>后再次运行,报出 In file included from /Users/apple/Documents/CWSSurveyIOS/ios/CWSSurveyIOS/AppDelegate.m:14: In file included from /Users/apple/Documents/CWSSurveyIOS/node_modules/react-native-baidu-map/ios/RCTBaiduMap/RCTBaiduMapViewManager.h:12: /Users/apple/Documents/CWSSurveyIOS/node_modules/react-native-baidu-map/ios/RCTBaiduMap/RCTBaiduMapView.h:14:9: fatal error: 'RCTConvert+CoreLocation.h' file not found
根据readme走下来,也遇到了同样的错误:
react-native版本:0.42.0
ios运行不了啊,有人 解决没有
一样的问题
+1
+1
我觉得这个问题可能和 #48 有相关之处,各位可以检查对应的配置项!
/Users/lihaoran/Downloads/react-native-baidu-map-master/ios/RCTBaiduMap/BaseModule.h:12:9: 'RCTBridgeModule.h' file not found /Users/lihaoran/Downloads/react-native-baidu-map-master/ios/RCTBaiduMap/RCTBaiduMapView.h:13:9: 'RCTViewManager.h' file not found