'React / RCTBridgeDelegate.h'文件在升级到0.60后未找到

问题描述 投票:2回答:1

升级到0.60后无法构建react-native应用程序出现错误'React / RCTBridgeDelegate.h'文件找不到

AppDelegate.h文件

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>


@interface AppDelegate() : UIResponder <UIApplicationDelegate, RCTBridgeDelegate.h>

@property (nonatomic, strong) UIWindow *window;

@end
xcode react-native appdelegate
1个回答
0
投票
[如果您正在使用cocoapods,并且在这种情况下,您是在尝试从Xcode进行构建,则应该从.xcworkspace文件而不是从.xcodeproj构建。这将适当地解决您的问题。
© www.soinside.com 2019 - 2024. All rights reserved.