我正在尝试从终端向我的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
结果
关于ios - Cocoapods安装错误-无法找到 pod 的规范,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45474407/