这是我的 Cartfile 文件:
当我运行
# 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凭据错误的错误。出了什么问题?
carthage version
来确定。 - jpsimcarthage version
命令,显示版本号为0.15
。 - Will HainsGITHUB_ACCESS_TOKEN
环境变量。除非我错过了什么,否则我在 Carthage 的README.md
中没有看到有关设置 GitHub API 凭据或环境变量的任何信息。你是说使用 Carthage 需要 GitHub API 凭据吗? - Will Hains