3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Swift4.2でのMessageKit導入

Last updated at Posted at 2018-10-04

MessageKitをSwift4.2の環境下で導入したい(MessageKit1.0)。
GitHub - MessageKit/MessageKit: A community-driven replacement for JSQMessagesViewController

しかし、CocoaPodsからインストールすると30個近いエラーが。。。

MessageKit1.1がリリースされれば改善されるらしいですが、一旦以下で無事に導入できました。

Podfile
  # Pods for MessageKitTest
    pod 'MessageKit'

# 以下追加
post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == "MessageKit"
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end 
    end
end  

参考
https://github.com/MessageKit/MessageKit/issues/878

3
4
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
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?