Skip to content

Commit b6f5b09

Browse files
committed
doc: 更新首页文档ruby管理和m1配置
1 parent a03d956 commit b6f5b09

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

website/src/pages/docs/environment-setup/ios/README.md

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,36 @@ $ cd AwesomeProject # 根目录运行
154154
$ yarn install # 安装node依赖
155155
```
156156

157-
React Naitve 0.70+ 运行下面命令
157+
**🚧🚧 如果你要运行 `[email protected]` or 或更高版本**
158+
[help](https://github.com/facebook/react-native/issues/34608#)
159+
#### 请保证你的ruby版本为2.7.5或更高版本
160+
你可以使用 [ruby](https://github.com/rbenv/rbenv#readme) 来管理你的ruby版本
161+
162+
```
163+
bundle install
164+
cd ios && bundle exec pod install
165+
```
166+
167+
**🚧🚧 MacBook Pro with a M1 🚧🚧**
158168

159169
```bash
160-
$ cd ios # 进入 ios 目录
161-
$ bundle install # 安装 Bundler
162-
$ bundle exec pod install # 以安装 iOS 依赖项
170+
# Install ffi
171+
sudo arch -x86_64 gem install ffi
172+
173+
rm -rf Pods Podfile.lock
174+
175+
# Clear pods.
176+
pod deintegrate
177+
# pod rm Podfile.lock
178+
arch -x86_64 pod install
179+
# Re-install pods
180+
arch -x86_64 pod install --repo-update --verbose
181+
182+
yarn run ios # Run instructions for iOS
183+
yarn run api
163184
```
164185

165-
React Naitve 0.60+ 运行下面命令
186+
## React Naitve 0.60+ 运行下面命令
166187

167188
```bash
168189
$ cd ios # 进入 ios 目录

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,29 @@ error Browser exited with error:, Error: invalid url, missing http/https protoco
286286
RN版本使用0.69.0
287287
288288
289+
## React Native 0.70.0 iOs fresh project errors out on run-ios
290+
#### 请保证你的ruby版本为2.7.5或更高版本
291+
你可以使用 [ruby](https://github.com/rbenv/rbenv#readme) 来管理你的ruby版本
292+
293+
```
294+
bundle install
295+
cd ios && bundle exec pod install
296+
```
297+
298+
## MacBook Pro with a M1
299+
300+
```bash
301+
# Install ffi
302+
sudo arch -x86_64 gem install ffi
303+
304+
rm -rf Pods Podfile.lock
305+
306+
# Clear pods.
307+
pod deintegrate
308+
# pod rm Podfile.lock
309+
arch -x86_64 pod install
310+
# Re-install pods
311+
arch -x86_64 pod install --repo-update --verbose
312+
313+
yarn run ios # Run instructions for iOS
314+
```

0 commit comments

Comments
 (0)