[英]Cocoapods: Unable to find a specification for `PUBLIC POD` depended upon by 'PRIVATE 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.