【问题标题】:'React/RCTBridgeDelegate.h' file not found after upgrade to 0.60升级到 0.60 后找不到“React/RCTBridgeDelegate.h”文件
【发布时间】:2019-12-02 07:38:14
【问题描述】:

升级到 0.60 后无法构建 react-native 应用程序出现错误 'React/RCTBridgeDelegate.h' file not found

AppDelegate.h 文件

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


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

@property (nonatomic, strong) UIWindow *window;

@end

【问题讨论】:

  • 你运行过'cd ios pod install`命令吗?
  • 是的,我已经运行了 cd ios pod install

标签: xcode react-native appdelegate


【解决方案1】:

如果您使用的是 cocoapods,在这种情况下,如果您尝试从 Xcode 构建,您应该从 .xcworkspace 文件构建,而不是从 .xcodeproj 构建。这将适当地解决您的问题。

【讨论】:

    猜你喜欢
    • 2019-11-18
    • 2019-11-06
    • 1970-01-01
    • 2023-03-08
    • 2023-01-05
    • 2019-12-08
    • 1970-01-01
    • 1970-01-01
    • 2019-12-18
    相关资源
    最近更新 更多