繁体   English   中英

Cocoapods安装错误 - 无法找到pod的规范

[英]Cocoapods install error- Unable to find a specification for pod

我正在尝试从终端向我的Xcode项目安装两个pod 我最初安装了一个名为PRAugmentedReality的pod,它工作正常。 然后我尝试添加pod BFTransmitter ,并开始收到以下错误消息:

[!] Unable to find a specification for 'PRAugmentedReality'

如果我删除PRAugmentedReality pod并使用BFTransmitter进行安装,它也可以正常工作。 所以基本上我可以自己安装,但不能一起安装。

我的podfile看起来像这样:

#source for BFTransmitter
source 'https://bitbucket.org/bridgefy/bridgefypods.git'

target 'FWF' do

    pod 'BFTransmitter'
    pod 'PRAugmentedReality'

    target 'FWFTests' do
        inherit! :search_paths
    end

end

我试过repo remove master pod setup然后pod install ,仍然没有运气。

只需添加源来安装两个pod一起检查我的podFile并像我一样在你的目标之前添加sourced

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://bitbucket.org/bridgefy/bridgefypods.git'

target 'pod' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

pod 'BFTransmitter'
pod 'PRAugmentedReality'

  # Pods for pod

end

结果

在此输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM