Skip to content

Commit

Permalink
fix: revert to collapsible note
Browse files Browse the repository at this point in the history
  • Loading branch information
Riccardo Cipolleschi committed Feb 23, 2022
1 parent d7f112c commit f3cb438
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
15 changes: 3 additions & 12 deletions docs/_getting-started-macos-ios.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
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 @@ -45,18 +47,7 @@ sudo gem install cocoapods

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

:::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.

:::
<M1Cocoapods />

### React Native Command Line Interface

Expand Down
14 changes: 11 additions & 3 deletions docs/_markdown-m1-cocoapods.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
:::info
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).
:::
<details>
<summary>Note for Mac M1 users</summary>

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.

</details>

0 comments on commit f3cb438

Please sign in to comment.