1
我正在嘗試安裝Google Analytics(分析)窗格。如果我僅在Podfile中擁有Google Analytics Pod,它會成功安裝該吊艙。該Podfile低於:Cocoapod - [!]無法找到「Analytics(分析)」的規範
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'TestSDK' do
# Comment the next line if you're not using Swift and don't want to
use dynamic frameworks
use_frameworks!
pod 'Analytics'
end
但是,如果我添加專用源在同一Podfile的另一盒,它提供了上述錯誤。新Podfile低於:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'XXXXXX Private Repo XXXXXX'
target 'TestSDK' do
# Comment the next line if you're not using Swift and don't want to
use dynamic frameworks
use_frameworks!
pod 'Analytics'
pod 'pod_from_the_private_repo' , '=1.0.0'
end
以上Podfile成功安裝pod_from_the_private_repo但它顯示錯誤只有Analytics(分析)這是在以前的情況下成功安裝。
這給了我另一個錯誤: – user93726
'意外的版本目錄'Classes'遇到了'/Users/kaishwarya/.cocoapods/repos/ [!] 'Analytics'儲存庫中的segmentio/Analytics'Pod – user93726
http://imgur.com/a/BAyC0 我創建了完全相同podfile的空項目,並且一切正常:) –