Skip to content

Commit 71349da

Browse files
committed
fix(question): 记录react-native版本运行解决问题
1 parent 4683721 commit 71349da

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

website/src/pages/docs/questions/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,34 @@ Xcode 打开工程文件错误,使用 `*.xcodeproj` 打开工程会报这个
278278
打开 `Kaychain Access(钥匙串访问)` 应用删除 `Apple Worldwide Developer Relations Certification Authority` 证书
279279
280280
![](./img/img05.png)<!--rehype:style=max-width: 650px;width: 100%;-->
281+
282+
## React Native 0.70 版本,在iOS模拟器中Open Debugger无法启动
283+
284+
#### `版本:`
285+
286+
```
287+
"react": "18.1.0",
288+
"react-native": "0.70.1",
289+
```
290+
291+
#### `问题`
292+
293+
`Cmd+D > Open Debugger > console logs`:
294+
295+
```
296+
info Opening flipper://null/Hermesdebuggerrn?device=React%20Native...
297+
error Browser exited with error:, Error: invalid url, missing http/https protocol
298+
```
299+
![](./img/img06.png)<!--rehype:style=max-width: 650px;width: 100%;-->
300+
301+
### `解决方案一`
302+
303+
1. 搜索关键字:`hermes_enabled``true改为false` `:hermes_enabled => false`<!--rehype:style=color: red;background: #ffd2d2;-->
304+
2. 移除Hermes引擎 `cd ios && pod install && cd ..`
305+
3. 重启项目 `yarn run ios`
306+
307+
### `解决方案二`
308+
309+
RN版本使用0.69.0
310+
311+
142 KB
Loading

0 commit comments

Comments
 (0)