MessageKit not compiling under Swift 4.2

Created on 25 Sep 2018  路  7Comments  路  Source: MessageKit/MessageKit

  • What version of MessageKit are you using? 1.0.0
  • What version of iOS are you running on? 12.0
  • What version of Swift are you running on? 4.2
  • What device(s) are you testing on? Are these simulators? Both
  • Is the issue you're experiencing reproducable in the example app? Yes
question

Most helpful comment

I will work on a 4.2 update

Sent with GitHawk

All 7 comments

This is a temporal workaround I'm using in my Podfile

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

Yeah, still no Swift 4.2 support. I haven't had time to even finish a 2.0 release, to be honest. Things at work have not been stable for a couple months

I will work on a 4.2 update

Sent with GitHawk

This is a temporal workaround I'm using in my Podfile

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

Do you put this after the pod firebase or whatever pods you're using? or before.

Do you put this after the pod firebase or whatever pods you're using? or before.

Put this snippet in the end of your pod file, after you define pods for your project.

Use the development branch for now, 1.1 release onwards will be on Swift 4.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mlequeux picture mlequeux  路  3Comments

nitrag picture nitrag  路  3Comments

yspreen picture yspreen  路  3Comments

Leon12345679 picture Leon12345679  路  3Comments

adri4silva picture adri4silva  路  4Comments