我正在学习本教程 - https://material.io/components/ios/catalog/cards/
它告诉我除了 pod 'MaterialComponents' 之外还要添加 pod 'MaterialComponents/Cards'
在运行 pod install 时,出现以下错误 -
CocoaPods could not find compatible versions for pod "MaterialComponents/Cards"
否则,XCode 无法找到 MaterialCards 组件 -
import MaterialComponents.MaterialCards
给出错误-
No such module 'MaterialComponents.MaterialCards'
最佳答案
我想,这可以解决你的问题,我在使用 diff 模块时发现了它,而 xCode 没有找到我的模块
关于ios - 我正在尝试在 Swift 中添加 MDCCard 以使用 Material Components 获取 Material Card View。错误 : No such module 'MaterialComponents.MaterialCards' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49549366/