GitHawkApp / MessageViewController

A SlackTextViewController replacement written in Swift for the iPhone X.

Home Page:http://githawk.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

26 error on Swift 4.2 on Xcode 10

ashishfission opened this issue · comments

Xcode : 10
iOS : 12
Swift 4.2

While integrating MessageViewController via Cocoapods, I am getting lots of error. PFA
screenshot 2018-12-05 at 11 33 43 am

Hey @ashishfission, this project supports Swift 4.0.

You'll need to add a CocoaPods post-install hook to your Podfile to inform the compiler that you want to use another Swift version with this module.

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'MessageViewController'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end
    end
end

Hope this helps

@SD10 Thanks :)