victorxu2
victorxu2

Reputation: 514

React-native installing required CocoaPods dependencies stuck

i cant finish react-native init as the process keep stuck at instaling required cocoapods dependencies please help

this is a few part what shown in terminal:

[4/4] πŸ“ƒ  Building fresh packages...
success Saved lockfile.
success Saved 48 new dependencies.
β”œβ”€ @babel/[email protected]
β”œβ”€ @babel/[email protected]
β”œβ”€ @react-native-community/[email protected]
β”œβ”€ @types/[email protected]
β”œβ”€ @typescript-eslint/[email protected]
β”œβ”€ @typescript-eslint/[email protected]
β”œβ”€ @typescript-eslint/[email protected]
β”œβ”€ @typescript-eslint/[email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
β”œβ”€ [email protected]
└─ [email protected]
✨  Done in 19.41s.
info Installing required CocoaPods dependencies

Upvotes: 49

Views: 42800

Answers (9)

Muhammad Waqar
Muhammad Waqar

Reputation: 193

I was having the same issue. Solved by changing my internet connection from WIFI to mobile data. Then I ran the following commands which worked for me:

$ pod deintegrate
$ pod install

Hope this will work.

Upvotes: 0

4RMx
4RMx

Reputation: 1

I think the main problem is mismatch version of CocoaPods and react native dependency. So you can try update Cocoapods

sudo gem install cocoapods

and then go inside your react native project in /ios folder then install pod again with

pod install

Upvotes: -1

Ryan
Ryan

Reputation: 322

Fixed with this - Open Xcode and go to Xcode β†’ Preferences β†’ Locations, and make sure the command line tools is set to the version of Xcode you’re using.

Upvotes: 6

dclipca
dclipca

Reputation: 1937

You can try to disable iCloud, this helped me.

Upvotes: 1

basil
basil

Reputation: 3612

Break with Ctrl-C.


Enter cd ios


Run pod install --repo-update


But anyway it is not fast. Need wait because big repo cloned into fs under the hood.

Upvotes: 13

Ramanan R R
Ramanan R R

Reputation: 906

It took a while for CocoaPods installation and I got error at the end. podfile was inside iOS folder with no .xcworkspace. I did pod install again (in iOS folder) and all good. Please make sure CocoaPods is installed.

Upvotes: -1

David S Lee
David S Lee

Reputation: 1947

Waiting for about 40mins worked for me. Installing required CocoaPods dependencies takes time. See my screenshot. enter image description here

Upvotes: 16

otoloye
otoloye

Reputation: 697

Installing required CocoaPods dependencies takes time. Waiting for about 30mins worked for me.

Upvotes: 44

Chanaka Weerasinghe
Chanaka Weerasinghe

Reputation: 5742

Install CocaPods CocoaPods is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.

We recommend installing CocoaPods using Homebrew.

$ brew install cocoapods 

or

sudo gem install cocoapods

Upvotes: 6

Related Questions