简体   繁体   English

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

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

I am trying to install two pods to my Xcode project from terminal. 我正在尝试从终端向我的Xcode项目安装两个pod I initially had installed a pod called PRAugmentedReality , and it worked fine. 我最初安装了一个名为PRAugmentedReality的pod,它工作正常。 Then I tried adding the pod BFTransmitter , and started getting the following error message: 然后我尝试添加pod BFTransmitter ,并开始收到以下错误消息:

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

If I remove the PRAugmentedReality pod and install with just BFTransmitter, it also works fine. 如果我删除PRAugmentedReality pod并使用BFTransmitter进行安装,它也可以正常工作。 So basically I am able to install either on their own, but not together. 所以基本上我可以自己安装,但不能一起安装。

My podfile looks like this: 我的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

I have tried repo remove master pod setup and then pod install , still no luck. 我试过repo remove master pod setup然后pod install ,仍然没有运气。

just add source to install both pods together check my podFile and add sourced before your target as I did 只需添加源来安装两个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

Result 结果

在此输入图像描述

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

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