Material: Problem compiling material with swift 3

Created on 3 Oct 2016  路  11Comments  路  Source: CosmicMind/Material

i tried migrating assistant but still tons of errors am i doing something wrong or its not supported by swift 3 ?
thanks in advance

screen shot 2016-10-03 at 1 30 42 pm

help wanted

Most helpful comment

@kiwo12345 Actually that is my bad, I need to update that. Thank you!

All 11 comments

I got the same error

@tarek903 I got it working by using:
pod 'Material', :git => 'https://github.com/CosmicMind/Material', :branch => 'development'

You are using version 1.42.9, which is not supported. You need to use 2.1.0, which is now officially released in master. So install the latest from master, and you should be good :)

@danieldahan I just tested with pod 'Material', '~> 1.0' and got the same errors, then I used pod 'Material', :git => 'https://github.com/CosmicMind/Material', :branch => 'development'

And now it works :)

Switch to 'Material', '~> 2.0'

@danieldahan My bad, I took the version from the docs/installation guide

@kiwo12345 Actually that is my bad, I need to update that. Thank you!

@danieldahan Is swift 3 support for this repo yet? I tried both master and development and errors tell me to use a legacy version of swift.

Yes, swift 3 is very much supported. If you are using CocoaPods, you may have to manually set the legacy flag to No.

Awesome thanks, I got it to work. If you have legacy swift 3 build error you can add this to the end of your podfile (source)

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
    end
  end
end

Awesome!!! Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MacMeDan picture MacMeDan  路  28Comments

tato469 picture tato469  路  17Comments

sovata8 picture sovata8  路  15Comments

leobouilloux picture leobouilloux  路  21Comments

mohpor picture mohpor  路  24Comments