question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pod install fails with non-error message for fresh installations

See original GitHub issue

I 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:

  1. (Re)Move CocoaPods local caches: mv ~/.cocoapods ~/.cocoapods.bkp mv ~/Library/Caches/CocoaPods ~/Library/Caches/CocoaPods.bkp
  2. Create new project: tns create Test
  3. Add a plugin that has Pods: tns plugin add nativescript-plugin-firebase
  4. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
surducommented, Sep 20, 2018

@rosen-vladimirov BUT the more drastic measure of deleting the whole ~/.cocoapods and ~/Library/Caches/CocoaPods did fix it 🎉

0reactions
surducommented, Sep 20, 2018

@rosen-vladimirov That doesn’t seem to solve the issue 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found