CocoaPods无法从GitHub安装"没有这样的文件或目录"错误

时间:2015-05-26 00:31:02

标签: git cocoapods osx-yosemite

我创建了一个包含两个库的Podfile。第一个是现有的吊舱,安装完美。第二个指向GitHub项目,失败并显示Pulsate.prototype.defineRandomPlace = function() { var self = this; var newPlace = possiblePlaces.splice(Math.floor(Math.random()*possiblePlaces.length), 1)[0]; if (self.currentPlace) { possiblePlaces.push(self.currentPlace); } self.currentPlace = newPlace; self.element.css('top', self.currentPlace.top + 'px'); self.element.css('left', self.currentPlace.left + 'px'); }; 错误。

运行Errno::ENOENT - No such file or directory我可以看到文件是从GitHub克隆并成功存储在名为pod install --verbose之类的文件夹中,但是在复制这些文件的命令之前会立即删除该文件夹temp文件夹到项目中的/var/folders/s8/05t8tk155t9dd6kzm9tlfpq00000gn/T/d20150526-5339-15aks97文件夹。这就是命令失败的原因Pods

根据网站上的其他答案,我已清除了No such file or directory文件夹并再次运行~/.cocoapods。我已成功运行pod setup。我还复制并粘贴了sudo gem update git clone说明它正在运行的命令,并且完成时没有任何错误。

我只是不知道为什么pod install --verbose中的文件夹在复制前被删除了,我不知道还有什么可以尝试。

2 个答案:

答案 0 :(得分:1)

将存储库克隆到临时文件夹中,然后只将识别为源的文件添加到项目中,是否可以发布Podfile?

答案 1 :(得分:0)

我遇到了同样的问题。更新cocoapods解决了它。

sudo gem update cocoapods