Install Cocoapods In Mac Os Catalina
React Native becoming very popular among Android and iOS developer because of its cross platform native development technique. React native is now doing what is impossible few years back but now its a complete game changer technique, which would soon change the development arena and any one can developer both android and iOS apps using single language.
This tutorial is for all the beginners who is thinking to learn React Native. So using this tutorial you can complete your first task to install Install React Native on MAC ( MACINTOSH ) system and create your first React Native project and run that project in real iOS device or iOS emulator. If you use windows system then you can also read my this tutorial. So lets get started 🙂 .
Step 1. Install Homebrew :
In my mac mini I've running Catalina 10.15.7. I've also installed Xcode 12.4. Now as I'm using third party library I'm trying to install cocoapods in my mac. So I used this - sudo gem install cocoapods which I got from official website. But I'm getting this. Unable to install Cocoapods on macOS Catalina 10.15.7 You’re now watching this thread and will receive emails when there’s activity. Click again to stop watching or visit your profile/homepage to manage your watched threads. Brew install cocoapods. Dependency manager for Cocoa projects. Installation support provided for macOS releases: Intel: big sur:: catalina. NOTE: If you have downloaded an extension that uses CocoaPods from the Marketplace, then you only need to follow the section 'Installing CocoaPods', below, to be able to use it. Installing CocoaPods. To be able to use the features that CocoaPods offers, you will first need to install it on your Mac. Install Xcode command line tools: To install the latest version on Xcode you need to follow the below steps: Open Xcode - Preferences - Locations tab - install latest version of Xcode command line tools. Create your first react native project in MAC: Step 7. Run your created project.
Homebrew is a type of platform dependency installation software which would allow us to install all the download and install all the required files. To install Homebrew open you terminal prompt and type the below command :
/usr/bin/ruby-e'$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' |
Step 2. Install Node.js :
Next step is to install the node.js online using command.
Step 3. Install watchmen :
Step 4. Install React Native CLI :
Step 5. install Xcode command line tools :
To install the latest version on Xcode you need to follow the below steps :
Open Xcode -> Preferences -> Locations tab -> install latest version of Xcode command line tools.
Step 6. Create your first react native project in MAC :
Step 7. Run your created project
2 | react-nativerun-ios |
Screenshot :
Here you go guys, Now you have successfully created your first React Native project in MAC. To start editing your project just open the index.ios.js file. Feel free to share your thoughts via comments 🙂 .
Also Read :
<What is CocoaPods
CocoaPods manages library dependencies for your Xcode projects.
The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.
Ultimately the goal is to improve discoverability of, and engagement in, third party open-source libraries by creating a more centralised ecosystem.
<Prefer video?
Install Cocoa Pods In Mac Os Catalina Free
Google have created a great overview for Route 85 video series going through this entire guide and more.
<Getting Started
<Installation
CocoaPods is built with Ruby and it will be installable with the default Rubyavailable on macOS. You can use a Ruby Version manager, however we recommend thatyou use the standard Ruby available on macOS unless you know what you're doing.
Install Cocoa Pods In Mac Os Catalina Os
Using the default Ruby install will require you to use sudo
when installinggems. (This is only an issue for the duration of the gem installation, though.)