Pod install fails with non-error message for fresh installations
See original GitHub issueI first noticed the problem on CI when trying to prepare an iOS project on a new machine, but in order to exclude being a problem with the CI itself I managed to find a way to reproduce it also on my local machine:
- (Re)Move CocoaPods local caches:
mv ~/.cocoapods ~/.cocoapods.bkp
mv ~/Library/Caches/CocoaPods ~/Library/Caches/CocoaPods.bkp
- Create new project:
tns create Test
- Add a plugin that has Pods:
tns plugin add nativescript-plugin-firebase
- Try preparing the project:
tns prepare ios --log trace
This fails with the following error on my local machine, which looks like normal git output, not an error:
Pod install command failed. Error output: Cloning into 'master'...
remote: Counting objects: 2221781, done.
remote: Compressing objects: 100% (480/480), done.
remote: Total 2221781 (delta 237), reused 248 (delta 99), pack-reused 2221183
Receiving objects: 100% (2221781/2221781), 546.46 MiB | 7.19 MiB/s, done.
Resolving deltas: 100% (1270873/1270873), done.
Checking out files: 100% (245557/245557), done.
On our CI machine the error is more detailed, but still looks like normal git output.
Versions:
nativescript: 4.0.2
tns-ios: 4.0.1
$ pod --version
1.5.3
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Trouble with installing cocoapods | Apple Developer Forums
ERROR : Error installing cocoapods: ERROR: Failed to build gem native extension. current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c.
Read more >CocoaPods not installed or not in valid state - Stack Overflow
CocoaPods not installed or not in valid state · 1. have you tried to run the command from the error message sudo gem...
Read more >Troubleshooting - CocoaPods Guides
In Xcode "Build Settings", find "Skip Install". Set the value for "Release" to "NO" on your application target. Build again and it should...
Read more >How to Fix Cocoapods Install Errors on an Apple Silicon Macs
This is a followup tutorial on how to fix and correctly install Cocoapods on your Apple Silicon machine(M1,M2).MacOS comes preinstalled with ...
Read more >CocoaPods installation failure when building for iOS
1. Right-click on the folder with the assembled build and click the "New Terminal at Folder" there upload_2021-9-13_14-53-25. · 2. It will open ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rosen-vladimirov BUT the more drastic measure of deleting the whole
~/.cocoapods
and~/Library/Caches/CocoaPods
did fix it 🎉@rosen-vladimirov That doesn’t seem to solve the issue 😦