React/RCTConvert.h 文件找不到 ReactNativeNavigation ver3
React/RCTConvert.h file not found with ReactNativeNavigation ver3
我正在为移动应用制作以下技术。
react-native: v0.60.0
react-native-navigation: 3.0.0-alpha.2
我为 iOS 构建了这个应用程序,然后在 ReactNativeNavigation 代码中出现以下错误消息。
React/RCTConvert.h file not found
错误文件是Pods/Development Pods/ReactNativeNavigation/RNNOptions.h
,这是它的内容。
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "BoolParser.h"
#import "TextParser.h"
#import "NumberParser.h"
#import "DictionaryParser.h"
#import "ColorParser.h"
#import "ImageParser.h"
#import "IntNumberParser.h"
#import "DoubleParser.h"
@interface RNNOptions : NSObject
- (instancetype)initWithDict:(NSDictionary*)dict;
- (RNNOptions *)overrideOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeInOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)withDefault:(RNNOptions *)defaultOptions;
@end
我已经试过了,
- 关注这个tutorial
但效果不佳,所以我又尝试了这些。
- 将
pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation'
插入 ios/Podfile
。
运行 react-native link react-native-navigation
和 pod install
在 ios
目录中
清理并重建 Xcode 中的项目。
使用 React Native 0.60+,您不需要 link 手动响应原生导航。
只是 运行 react-native link react-native-navigation
和 cd ios; pod install
有关详细信息,请参阅此 issue
我正在为移动应用制作以下技术。
react-native: v0.60.0
react-native-navigation: 3.0.0-alpha.2
我为 iOS 构建了这个应用程序,然后在 ReactNativeNavigation 代码中出现以下错误消息。
React/RCTConvert.h file not found
错误文件是Pods/Development Pods/ReactNativeNavigation/RNNOptions.h
,这是它的内容。
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "BoolParser.h"
#import "TextParser.h"
#import "NumberParser.h"
#import "DictionaryParser.h"
#import "ColorParser.h"
#import "ImageParser.h"
#import "IntNumberParser.h"
#import "DoubleParser.h"
@interface RNNOptions : NSObject
- (instancetype)initWithDict:(NSDictionary*)dict;
- (RNNOptions *)overrideOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeInOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)withDefault:(RNNOptions *)defaultOptions;
@end
我已经试过了,
- 关注这个tutorial
但效果不佳,所以我又尝试了这些。
- 将
pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation'
插入ios/Podfile
。 运行
react-native link react-native-navigation
和pod install
在ios
目录中清理并重建 Xcode 中的项目。
使用 React Native 0.60+,您不需要 link 手动响应原生导航。
只是 运行 react-native link react-native-navigation
和 cd ios; pod install
有关详细信息,请参阅此 issue