Skip to content

Commit

Permalink
fix: slims down the rendered documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed Feb 21, 2022
1 parent 7835ee5 commit d7f112c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
15 changes: 12 additions & 3 deletions docs/_getting-started-macos-ios.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import M1Cocoapods from './\_markdown-m1-cocoapods.mdx';

## Installing dependencies

You will need Node, Watchman, the React Native command line interface, Xcode and CocoaPods.
Expand Down Expand Up @@ -47,7 +45,18 @@ sudo gem install cocoapods

For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).

<M1Cocoapods />
:::info

**Note for Mac M1 users**

Mac M1 architecture is not directly compatible with Cocoapods. If you encounter issues when installing pods, you can solve it by running:

- `sudo arch -x86_64 gem install ffi`
- `arch -x86_64 pod install`

These commands install the `ffi` package, to load dynamically-linked libraries and let you run the `pod install` properly, and runs `pod install` with the proper architecture.

:::

### React Native Command Line Interface

Expand Down
11 changes: 1 addition & 10 deletions docs/_markdown-m1-cocoapods.mdx
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
:::info

**Note for Mac M1 users**

Mac M1 architecture is not directly compatible with Cocoapods. If you encounter issues when installing pods, you can solve it by running:

- `sudo arch -x86_64 gem install ffi`
- `arch -x86_64 pod install`

These commands install the `ffi` package, to load dynamically-linked libraries and let you run the `pod install` properly, and runs `pod install` with the proper architecture.

In case of issue with Cocoapods on a Mac M1, look at [how to set them up properly](https://reactnative.dev/docs/environment-setup#cocoapods).
:::

0 comments on commit d7f112c

Please sign in to comment.