这是我的购物车文件:
# Kanna HTML parsing library
github "tid-kijyun/Kanna" ~> 1.0.0
# Realm database/ORM
github "realm/realm-cocoa"
当我跑步时carthage update
我明白了:
$ carthage --version
Unrecognized command: '--version'. See `carthage help`.
$ carthage update --platform OSX
*** Fetching realm-cocoa
*** Fetching Kanna
*** Skipped downloading realm-cocoa.framework binary due to the error:
"GitHub API request failed: Bad credentials"
*** Checking out realm-cocoa at "v0.98.3"
*** Skipped downloading Kanna.framework binary due to the error:
"GitHub API request failed: Bad credentials"
*** Checking out Kanna at "1.0.5"
*** xcodebuild output can be found in /var/folders/p2/c_d5mx0s3gl45165btrpx1fm0000gn/T/carthage-xcodebuild.KVYEob.log
*** Building scheme "Kanna_OSX" in Kanna.xcworkspace
*** Building scheme "RealmSwift" in RealmExamples.xcworkspace
*** Building scheme "Realm" in RealmExamples.xcworkspace
所以它似乎确实构建了 Kanna 和 Realm,但我收到了有关 GitHub API 凭据错误的错误。怎么了?
我得到了解决方案的回应迦太基问题 https://github.com/Carthage/Carthage/issues/1188#issuecomment-195918921我提出:
-
Edit ~/.gitconfig
并添加以下内容:
[credential]
helper = osxkeychain
[credential "https://github.com"]
username = willhains
(代替willhains
使用您的 GitHub 用户 ID。)
通过 HTTPS 克隆私有存储库。
OSX 将提示您输入 GitHub 密码。
Run carthage update
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)