ios - 如何在 iOS 中现有的 cocoa-pod 集中添加新库

标签 ios objective-c iphone cocoapods

我已经通过 cocoa-pod 添加了 AFNetworking,它工作正常,现在我需要再添加一个库。那么我可以使用现有的 pod 文件还是我应该创建一个新的 请在这里帮助我如何做到这一点。

最佳答案

您可以像这样添加您的广告连播。完成后,您应该运行 pod install。

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
# use_frameworks!

target 'myproject' do
pod 'AFNetworking', '~> 3.0'
pod 'GoogleAnalytics', '~> 3.14'
pod 'Mantle', '~> 2.0'
pod 'PureLayout', '~> 3.0'
end

关于ios - 如何在 iOS 中现有的 cocoa-pod 集中添加新库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37477043/

相关文章:

ios - 动画时将 UITableViewCell 子 UIImageView 置于前面

android - 是否有跨平台框架可以访问 Android、iOS 和 Windows Phone 的短信内容?

ios - 以编程方式使用约束使 UIIMageView 居中

ios - 从 CBCentralManagerDelegate 回调以在 IOS8 上检索 CBPeripheral

objective-c - 覆盖 NSArray 的哈希值

iphone - 丢失了我的 xcode 项目中的所有目标

ios - 如何在 DialogViewController (Monotouch.Dialog) 上设置背景颜色

iphone - 从 ACAccount 在 TWTweetComposeViewController 中设置默认用户名

ios - Crashlytics 没有向我的 Fabric 仪表板发送崩溃报告?

iphone - iOS - 无法使用 CIFilter 处理图像