我无法导入使用MaterialContainerScheme所需的内容

时间:2019-03-23 03:42:02

标签: ios swift material-components

我想切换到使用beta podspec,并根据文档更新我的Podfile,并收到错误消息“无法找到MaterialComponentsbeta的规范。

复制步骤

重现行为的步骤:

  1. 使用Podfile更新了pod 'MaterialComponentsBeta', :git => 'https://github.com/material-components/material-components-ios', :branch => 'develop'
  2. pod install
  3. 收到的错误。

预期行为

安装适当的Pod库

实际行为

收到以下错误:

Analyzing dependencies
Pre-downloading: `AlertOnboarding` from `https://github.com/doronkatz/AlertOnboarding.git`, branch `master`
Pre-downloading: `MaterialComponentsBeta` from `https://github.com/material-components/material-components-ios`, branch `develop`
[!] Unable to find a specification for 'MaterialComponentsBeta'.

[!] Unable to load a podspec from `MaterialComponentsSnapshotTests.podspec`, skipping:

Pod::DSLError

[!] Unable to load a podspec from `MaterialComponents.podspec`, skipping:

Pod::DSLError

[!] Unable to load a podspec from `MaterialComponentsBeta.podspec`, skipping:

Pod::DSLError

平台(请填写以下信息)

  • Cocoapod 1.2.0.rc.1
  • 莫哈韦河

1 个答案:

答案 0 :(得分:2)

我认为您使用的网址错误,应该尝试按照以下步骤解决问题。

pod 'MaterialComponentsBeta', :git => 'https://github.com/material-components/material-components-ios.git'

请参阅本文档Material Design Beta Components