Search code examples
xcode7carthage

Carthage error "Bad credentials"


Instructions: https://github.com/watson-developer-cloud/ios-sdk

Errors:

*** Skipped downloading ios-sdk.framework binary due to the error:
"Bad credentials"

The following build commands failed:
    CompileSwift normal arm64
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)

enter image description here


Solution

  • I got the solution in response to a Carthage issue willhains raised:

    1. Edit ~/.gitconfig and add the following:

      [credential]
          helper = osxkeychain
      [credential "https://github.com"]
          username = willhains
      

      Replace willhains with your GitHub user ID.

    2. Clone a private repo via HTTPS.

    3. OSX will prompt for your GitHub password.
    4. Run Carthage update.

    OR
    You can delete the GitHub credential form you Keychain access and use..
    Hope this will help