Cocoapods安装错误 - 无法找到吊舱的规格
我正在尝试从终端安装两个吊舱到我的Xcode项目。我最初安装了一个名为PRAugmentedReality
的荚,并且它工作正常。然后我试图加入荚BFTransmitter
,并且开始收到以下错误消息:Cocoapods安装错误 - 无法找到吊舱的规格
[!] 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
,仍然没有运气。
只需添加源同时安装荚一起检查我的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
结果
非常感谢!我用这个拉着我的头发 – FightOn
欢迎,高兴地帮助:) –
你有没有尝试清洁您的项目,并重新推出其目标前加上源?窗口+ Shift + K clean项目,然后关闭它再次打开Workspace并尝试。这样的错误有时是由于再次安装了pod,并且在启动它之后只是构建它并查看错误是否仍存在,然后删除两个pod并将它们安装在一起并检查 –
@iOSGeek仍然没有运气。 – FightOn