No such module 'MaterialComponents.MaterialCards_ColorThemer'

3.1k views Asked by At

I am new in swift development Im trying to implement Material Card in my App. I've Installed 'MaterialComponents' using Cocoapods. I can import MaterialComponents in my ViewController but when I go and import

import MaterialComponents.MaterialCard_ColorThemer

It Gives me an error :

No such module 'MaterialComponents.MaterialCards_ColorThemer'

Am I missing something here ?

PodFile:

target 'Melange' do

  use_frameworks!
  pod 'MaterialComponents'


  # Pods for Melange

  target 'MelangeTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'MelangeUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end
1

There are 1 answers

0
Ilya Krigouzov On

Try to set specific version of pod. In my case it's works with:

pod 'MaterialComponents', '~> 94.2'