xcode - Cocoapods 安装项目 Podfile 中未指定的 pod

标签 xcode cocoapods

当我运行 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.

最佳答案

CocoaPods 安装指定的 Pod 以及所有这些 Pod 的依赖项。

如果您查看 PodTest.podspec 及其依赖项,并递归地遵循这些依赖项的 podspec,它应该与安装的 Pod 匹配。

另请参阅与 Podfile 一起创建的文件 Podfile.lock,以查看相关 Pod 及其依赖项的列表。

关于xcode - Cocoapods 安装项目 Podfile 中未指定的 pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46083503/

相关文章:

ios - Cocoapods:iOS 应用程序中的 OS X 测试应用程序?

iphone - 无法对 UIBarButtonItem 设置操作

ios - xcode 6 : tableview in autolayout is working for some devices but not all

ios - 披露指示器未触发辅助 Action 序列

ios - 多平台cocoapods库配置

ios - Cocoapod 在 pod install 时出错,没有生成 xcworkspace

IOS:SQLite。快速查找记录

objective-c - 调用 objc 静态库的 swift 应用程序出现链接错误

swift - 错误 : "no such module <Swift Cocoapod name>" with Jenkins

ios - 构建 Cocoapods 模块错误 [ARC] xcodebuild : Returned an unsuccessful exit code