2015-02-11 54 views
5

以下this鏈接,我試圖創建一個鏈接中給出的示例項目。pod boost安裝錯誤tar:無法識別的存檔格式

我創建的pod文件中給出的鏈接,但是當我安裝莢,我收到以下錯誤:

[!] Error installing boost 
[!] /usr/bin/tar xfz /Volumes/DATA/../cineio-broadcast/Pods/boost/file.tgz -C /Volumes/DATA/../cineio-broadcast/Pods/boost 

tar: Unrecognized archive format 

tar: Error exit delayed from previous errors. 

錯誤截圖附如下: enter image description here

我在哪裏得到錯誤?我該如何解決這個問題?

+0

在https://cocoapods.org中搜索您的組件,並按照說明進行操作。 – 2017-01-01 11:48:35

回答

1

該腳本以錯誤的方式下載boost庫。

顯然它下載了錯誤的格式(消息似乎暗示),但事實上它更可能是腳本意外地使用了舊的(不再有效的)URL,該文件實際上是一個錯誤頁面(例如sourceforge .net的404頁面)。

您可以檢查下載的「歸檔」(/Volumes/DATA/../cineio-broadcast/Pods/boost/file.tgz)以查看它實際包含的內容。或者你可以修復腳本中的鏈接(也許你應該在github回購中找到)。

在所有情況下與開發商