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

标签 ios objective-c cocoapods

我正在尝试从终端向我的Xcode项目安装两个Pod。我最初安装了一个名为PRAugmentedReality的pod,并且工作正常。然后,我尝试添加pod BFTransmitter,并开始收到以下错误消息:
[!] Unable to find a specification for 'PRAugmentedReality'
如果删除PRAugmentedReality容器并仅使用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并像我一样在目标之前添加源代码

# 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

结果

enter image description here

关于ios - Cocoapods安装错误-无法找到 pod 的规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45474407/

相关文章:

ios - 更改项目名称iOS后无声音

objective-c - iOS:感知小型设备振动 - 例如 sleep 监测应用程序

ios - 无法添加带有 url 的源

ios - Xcode 构建错误 - "Implicit declaration of function ‘sqlite3_key’ 在 C99 中无效”

iphone - 自动供应与临时供应

Firebase Analytics 中的 iOS 版本报告?

iphone - 从导航 Controller 弹出 View 后递归不会停止

ios - 可视化图像处理代码测试的输出

ios - 关闭呈现的 View Controller 后推送 View Controller

ios - 找不到适合 iPhone5 架构的图片