実行したコマンドは、正確には「bundler exec pod install」だけど、実質一緒だから関係ない。とある参考書通りにアプリ開発をしていたところ、下記のエラーが出たので対処。きっと綴り間違いしているだけだとは思いつつもお勉強のために調査。
% bundler exec pod install
bundler exec pod install
Analyzing dependencies
[!] Unable to find a specification for `FSCalender `
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install –repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
% pod search "FSCalender"
でCocoaPodsのMasterにライブライが存在するかを確認。ありそうな雰囲気。類似したライブラリも出してくれるとはありがたい。ってやっぱりカレンダーの綴り間違えてるだけだった。はい、解決!!!(podfileを修正してpod install
実行したらできた。)
-> BSCalendarView (1.0.0)
a horizontal calendar view, with many properties to custom and animate
height when scroll
pod ‘BSCalendarView’, ‘~> 1.0.0’
– Homepage: https://github.com/blurryssky/BSCalendarView
– Source: https://github.com/blurryssky/BSCalendarView.git
– Versions: 1.0.0, 0.1.3, 0.0.3, 0.0.2, 0.0.1 [trunk repo]
〜省略〜
-> FSCalendar (2.8.2)
A superiorly awesome iOS7+ calendar control, compatible with Objective-C and Swift.
pod ‘FSCalendar’, ‘~> 2.8.2’
– Homepage: https://github.com/WenchaoD/FSCalendar
– Source: https://github.com/WenchaoD/FSCalendar.git
– Versions: 2.8.2, 2.8.1, 2.8.0, 2.7.9, 2.7.8, 2.7.7, 2.7.6, 2.7.5, 2.7.4, 2.7.3, 2.7.2, 2.7.1, 2.7.0, 2.6.0, 2.5.1,
2.5.0, 2.4.0, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.0, 2.1.1, 2.1.0, 2.0.1, 2.0.0, 1.8.2, 1.8.1, 1.8.0, 1.7.2, 1.7.1, 1.7.0,
1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.2, 1.5.1, 1.5.0, 1.4.1, 1.4.0, 1.3.1, 1.2.2, 1.2.0, 1.1.4, 1.1.2, 1.0.2, 1.0.1, 0.12.3,
0.12.2, 0.11.3, 0.11.2, 0.9.3, 0.9.2, 0.9.1, 0.9.0, 0.8.1, 0.8.0, 0.7.0, 0.6.0, 0.5.4, 0.5.3, 0.5.2, 0.5.1, 0.5.0,
0.4.0, 0.3.0, 0.2.0, 0.1.0, 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1 [trunk repo]
-> FSCalendar+Persian (2.9.3)
RTL (Persian and Arabic) version of FSCalendar. https://husseinhj.github.io/FSCalendar/
pod ‘FSCalendar+Persian’, ‘~> 2.9.3’
– Homepage: https://github.com/Husseinhj/FSCalendar
– Source: https://github.com/Husseinhj/FSCalendar.git
– Versions: 2.9.3, 2.9.2, 2.9.1, 2.9.0, 2.8.1, 2.8.0, 2.7.9 [trunk repo]
-> FSCalendar-Custom-HotelGG (2.7.9.1)
A superiorly awesome iOS7+ calendar control, compatible with Objective-C and Swift.
pod ‘FSCalendar-Custom-HotelGG’, ‘~> 2.7.9.1’
– Homepage: https://github.com/WenchaoD/FSCalendar
– Source: https://github.com/Pegaiur/FSCalendar.git
– Versions: 2.7.9.1 [trunk repo]
あとそのままでは検索から抜けられないので、q
を入力 -> Enter
で抜ける必要あり。(文字入力できない時は、一回ESCキー操作)
ライブラリ名を間違えていない場合は、CocoaPodsのMasterが壊れている可能性があるらしく下記のコマンドで修復できる模様。
$ sudo rm -fr ~/.cocoapods/repos/master/
$ pod setup ーーーーSetup completed
$ pod install
こちらを参考にさせていただきました。