LoginSignup
4
1

More than 3 years have passed since last update.

MessageKitをクローンしたがビルドができなかった話

Posted at

はじめに

MessageKitとはiOSアプリでLINEのようなチャット画面を簡単に作成することができるframeworkであり、cocoapodsでinstallできる。
ただ使い方がよく分からなかったので、クローンしてサンプルプロジェクト(MessageKit/Example/ChatExample.xcworkspace)を触ろうとしたがビルドが通らなかった。

エラー文

.../MessageKit/Example/Pods/Target Support Files/ Pods-ChatExample/Pods-ChatExample.debug.xcconfig: unable open file (in target "ChatExample" in project "ChatExample") (in target 'ChatExample')

解決策

ChatExample.xcworkspaceを削除し、

pod install

を実行。失敗。エラー文は以下

Fetching podspec for `MessageKit` from `../`
[!] CocoaPods could not find compatible versions for pod "InputBarAccessoryView":
  In snapshot (Podfile.lock):
    InputBarAccessoryView (= 4.2.2)

  In Podfile:
    MessageKit (from `../`) was resolved to 3.0.0, which depends on
      InputBarAccessoryView (~> 4.2.2)

None of your spec sources contain a spec satisfying the dependencies: `InputBarAccessoryView (= 4.2.2), InputBarAccessoryView (~> 4.2.2)`.

よく分からんが要はキャッシュを手動で更新してやる必要があるらしい。(参考pod install でライブラリの最新バージョンが入らないときの対処)

pod repo update
pod install

通った。

結果

見れた。めでたしめでたし。
スクリーンショット 2020-01-16 17.31.35.png

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1