我想切换到使用beta podspec,并根据文档更新我的Podfile,并收到错误消息“无法找到MaterialComponentsbeta的规范。
重现行为的步骤:
Podfile
更新了pod 'MaterialComponentsBeta', :git => 'https://github.com/material-components/material-components-ios', :branch => 'develop'
pod install
。安装适当的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
答案 0 :(得分:2)
我认为您使用的网址错误,应该尝试按照以下步骤解决问题。
pod 'MaterialComponentsBeta', :git => 'https://github.com/material-components/material-components-ios.git'