当我运行pod install cocoapods安装当前项目Podfile中未列出的几个pod时:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'PodUser' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for PodUser
pod "PodTest"
end
我的pod安装输出:
pod install
Analyzing dependencies
Downloading dependencies
Using AFNetworking (3.1.0)
Using FirebaseAnalytics (3.9.0)
Using FirebaseCore (3.6.0)
Using FirebaseInstanceID (1.0.10)
Using Google (3.1.0)
Using GoogleAnalytics (3.17.0)
Using GoogleToolboxForMac (2.1.1)
Using PodTest (0.0.1)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 8 total pods installed.
答案 0 :(得分:2)
CocoaPods安装指定的pod和所有pod的依赖项。
如果您查看PodTest.podspec及其依赖项并递归地遵循podspec的那些依赖项,它应该与已安装的pod匹配。
另请参阅与Podfile一起创建的文件Podfile.lock,以查看相关pod及其依赖项的列表。