Reputation: 514
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
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
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
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
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
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
Reputation: 1947
Waiting for about 40mins worked for me. Installing required CocoaPods dependencies takes time. See my screenshot.
Upvotes: 16
Reputation: 697
Installing required CocoaPods dependencies
takes time. Waiting for about 30mins worked for me.
Upvotes: 44
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