Started working on a new project where I need to run "Carthage update" for a mix of private and public projects some of which have submodules. No matter what I do Carthage hangs with no indication of why. What can I do to determine the hangs, and then how do I fix those problems?
How do I resolve macOS Carthage hangs when running update?
3.8k views Asked by David H At
1
There are 1 answers
Related Questions in GITHUB
- How to update to the latest external Git in Azure Web App?
- Github Pages Deployment deploys a blank page
- Git Not In Sync with Local Branch
- How do I create a test passing badge for my yaml below
- Cant connect to any github repository from my netbeans 20
- How can i redirect pull request from main branch to another branch
- Trying to update the version.go file with the release tag from GitHub actions but its failing
- Encountering Errors Running GitHub Project: Wavelet-pixel domain progressive fusion network for underwater image enhancement - Seeking Assistance
- How can I reintroduce username an password on git using fedora?
- How do I find Github File_ID?
- Forking vs Cloning in GitHub
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- how to build nextjs app unable to build and deploy
- Plugin with id 'com.android.application' not found in Github Winlator Project
- Git commit asks for passphrase which I don't remember
Related Questions in CARTHAGE
- Mastercard gateway iOS SDK installation using Carthage failed
- Why does my Xcode project always complain about the compiled version of MonorailSwift?
- How to correct "Unable to open dependencies file" error on Xcode?
- Does Carthage support having different versions of the same library together?
- the code "import DomainParser" in my Swift file triggers a syntax error
- 'Directory not found for option '-F/Users/admin/xcreds/Carthage/Build/Mac'
- Carthage PO doesn't work after update - "error: expression failed to parse: error: stat cache file, couldn't IRGen expression"
- framework does not contain bitcode ... for architecture arm64
- Update Carthage: Building universal frameworks with common architectures is not possible
- Download iOS dependencies from S3 bucket
- Migrating from carthage to swift package manager
- Swift app not building with older modules
- clang: error: no such file or directory: Command Ld failed with a nonzero exit code
- Is it possible to fetch a private repository with cocoapods or carthage?
- Multiple commands produce Carthage
Related Questions in PASSPHRASE
- Cannot open a gpg file on another machine (`gpg: decryption failed: No secret key`)
- SSH_ASKPASS on Android
- How do you delete the keyring and change the passphrase for any cosmos sdk blockchain?
- How do you use programmatically send a passphrase to GPG for git commit signing?
- How to generate a reproducable private key from pass phrase using the openssl command?
- MacOS cron job can't access ssh key with passphrase in key chain while computer sleeping
- Using phantom to import solana wallet that was created in cli
- passphrase recovery for open pgp secret key
- React native - undefined is not an object (evaluating '_bip.default.generateMnemonic')
- Git asking for SSH passphrase every time, while SSH gets it from agent
- PHP CURL request for a P12 (PFX) certificate with an export password (Passphrase)
- How to use SSL with Passphrase for PostgreSQL?
- AWS how to open a website from an EC2 instance in the private subnet
- Recovering Dogecoin and Litecoin wallets from mnemonic passphrase
- pass apache httpd passphrase non-interactively to standard input
Related Questions in TWO-STEP-VERIFICATION
- Error when i send email from my hosted laravel project
- Two-step verification with php sonata-Project/google-authenticator not working
- Sending email using C and google gmail 2-step authentication
- Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclose
- How to run a cgi program as a google authorised user - as 3rd party apps are now forbidden
- PHP use cookies with selenium
- how can i implement two step registration with phone number in django?
- 2 step authentication with django rest framework
- Should I encrypt memorable-word?
- Gmail smtp SASL authentication
- Firebase SMS code verification at log-in
- Sonata Admin Two-Steps Google Authentication
- Twilio SMS Forgotten Password Rails
- How to change YAML value from Controller in Symfony
- How do I resolve macOS Carthage hangs when running update?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Much of what I did to solve my problems can be found elsewhere, but no one site had it all. In the end I used a technique that I did not find but guessed at.
The root problem I had was adopting recommended security protection for my github account: two stage authentication and a passphrase for ssh. Both of these can be worked around, but unfortunately Cathage offers no "verbose" option to let a user determine what git commands it's executing - an option that would really help the user when it hangs. In my case (and probably most others) the root problem is that a git command run by Carthage wants to prompt the user for something, and Carthage has closed or redirected standard output.
1) Sierra and Git account/passwords
It seems that a recent Sierra point release changes how git credentials are cached. The proper way to do this now is using the Keychain. The procedure on how to direct git to use the Keychain is found here . Note that this technique only works for pure "account/password" authentication.
Before even trying Carthage, insure you can use
git clonefrom the terminal to be sure all is well.2) Two-step authentication
In this case, you need to use an authentication token. That token is used in place of the git password. Again, insure you can clone an appropriate repository before trying Carthage.
3) Passphrase for ssh access
If git uses ssh (as it may with sub-modules), then git will attempt to prompt for the passphrase, and as Carthage suppresses that you'll be left hanging. By adding a line to your
~/.ssh/configfile (and do this at the BOTTOM of the file)git will also use the Keychain for saving and retrieving the passphrase. You need to do this once via the Terminal to get it entered into the Keychain.
4) Still stuck?
If the above techniques don't help you, when Carthage hangs open a new terminal window and run
ps -aef | grep git; what you'll then see are a few git commands. Hopefully you will see agit clonecommand as I did; copy that command to the clipboard.Kill the Carthage command, then paste the line in Terminal and run the command (perhaps by editing it to remove extraneous options), and see what happens. With luck what you find will help you resolve your problem.