关于Carthage的使用

Carthage 相信大家都不陌生,陌生的话请自行了断 - _ -(自行百度)

但是今天我给大家说的并不是Carthage的安装和正常使用教程,而是在我同事机子上出现的一个奇怪现象:#

我们平时在安装好Carthage后,就可以在命令里面直接对相关的Cartfile文件进行carthage update操作,然后就可以获取到我们想要的类库了。

正常情况下是这样的:

admindeiMac:testCarthageDemo admin$ carthage update
*** Fetching testCarthage
*** Checking out testCarthage at "1.0.0"
*** xcodebuild output can be found in /var/folders/qm/8q95w_1133l4vr9dw85sgrfh0000gp/T/carthage-xcodebuild.6mlT8Q.log
*** Building scheme "testCarthage" in testCarthage.xcodeproj
admindeiMac:testCarthageDemo admin$ 

但奇怪的是,我同事的机子上面进行相同的carthage update操作,竟然报错了:(正确地址已用XXX代替)

A shell task (/usr/bin/env git clone --bare --quiet http://git.XXX.com/client/ios_public/CarthageRepos/test_framework.git /Users/admin/Library/Caches/org.carthage.CarthageKit/dependencies/test_framework) failed with exit code 128:
fatal: could not read Username for 'http://git.XXX.com': terminal prompts disabled

然后我就上网查了资料,发现还是有歪果仁出现类似的情况的,经过了几个小时的尝试,最后使用一下方法解决了:

Attempting push on git and receiving “could not read Username for 'https://github.com': terminal prompts disabled”

image.png

然后其中尝试过的一些方法因为后面都是没有效的,就不贴出来了,以免误导大家。

你可能感兴趣的:(关于Carthage的使用)