From f3cb438680cf87a296a8facd63812f851de32086 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 23 Feb 2022 14:31:02 +0000 Subject: [PATCH] fix: revert to collapsible note --- docs/_getting-started-macos-ios.md | 15 +++------------ docs/_markdown-m1-cocoapods.mdx | 14 +++++++++++--- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/docs/_getting-started-macos-ios.md b/docs/_getting-started-macos-ios.md index 402f4b25903..c12de30ef69 100644 --- a/docs/_getting-started-macos-ios.md +++ b/docs/_getting-started-macos-ios.md @@ -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. @@ -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. - -::: + ### React Native Command Line Interface diff --git a/docs/_markdown-m1-cocoapods.mdx b/docs/_markdown-m1-cocoapods.mdx index 61c7c28e000..41161b15791 100644 --- a/docs/_markdown-m1-cocoapods.mdx +++ b/docs/_markdown-m1-cocoapods.mdx @@ -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). -::: +
+ 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. + +