2017-08-03 81 views
0

我正在嘗試從終端安裝兩個吊艙到我的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 masterpod setup然後pod install,仍然沒有運氣。

+0

你有沒有嘗試清潔您的項目,並重新推出其目標前加上源?窗口+ Shift + K clean項目,然後關閉它再次打開Workspace並嘗試。這樣的錯誤有時是由於再次安裝了pod,並且在啓動它之後只是構建它並查看錯誤是否仍存在,然後刪除兩個pod並將它們安裝在一起並檢查 –

+0

@iOSGeek仍然沒有運氣。 – FightOn

回答

2

只需添加源同時安裝莢一起檢查我的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

+0

非常感謝!我用這個拉着我的頭髮 – FightOn

+1

歡迎,高興地幫助:) –

相關問題