File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,34 @@ https://uiwjs.github.io/react-native-wechat/apple-app-site-association
5454
5555</details >
5656
57+ <details >
58+ <summary >iOS: RCTBridge required dispatch_sync to load RCTDevLoadingView.</summary >
59+
60+ > 错误内容: RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks
61+
62+ ** 错误解决方案** :可以通过下面代码可以解决,事实上我通过关闭 debug 浏览器页面就没有错误消息了。错误原因可能是你打开了 debug 浏览器,但是你模拟器并没有开启 debug 模式。
63+
64+ ``` diff
65+ + #if RCT_DEV
66+ + #import <React/RCTDevLoadingView.h>
67+ + #endif
68+
69+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
70+ {
71+ # ifdef FB_SONARKIT_ENABLED
72+ InitializeFlipper(application);
73+ # endif
74+
75+ RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
76+
77+ + #if RCT_DEV
78+ + [bridge moduleForClass:[RCTDevLoadingView class]];
79+ + #endif
80+ RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"example" initialProperties:nil];
81+ ```
82+
83+ </details >
84+
5785## 安装依赖
5886
5987``` bash
You can’t perform that action at this time.
0 commit comments