我无法导入我需要的东西,使用MaterialContainerScheme

问题描述 投票:0回答:1

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

复制步骤

重现行为的步骤:

  1. Podfile更新了pod 'MaterialComponentsBeta', :git => 'https://github.com/material-components/material-components-ios', :branch => 'develop'
  2. Ran 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
  • 莫哈韦
ios swift material-components
1个回答
2
投票

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

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

请参阅此文档Material Design Beta Components

© www.soinside.com 2019 - 2024. All rights reserved.