1. 程式人生 > >【問題處理】CocoaPods, Unable to find a specification for `XXXXXX`

【問題處理】CocoaPods, Unable to find a specification for `XXXXXX`

問題描述

[!] Unable to find a specification for `SAMKeychain (~> 1.5.2)`

[!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.

問題解決

我的是因為Pod的spec庫(存放Pod可下載的所有三方庫索引)版本太老,找不到你要下載的包,所以可以先刪掉舊的Pod的spec庫,然後重新安裝。

pod repo remove master

pod setup

應該也可以使用Pod庫更新命令

pod repo update

然後再install,問題解決。