如何下载多个 pods

How to download multiple pods

这里是新手。我不确定如何将多个 pods 下载到我的 xcode 项目中。

1) 我已经安装了 CocoaPods。

我第一次创建一个pod文件来下载一个pod。

下面是 pod 文件:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Alamofire', '~> 4.4'
end

2) 如何下载下一个pod?

我必须使用 SAME pod 文件 并删除以前的内容并输入以下新的 pod 详细信息?

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'JTAppleCalendar', '~> 7.0'
end

a) 这是正确的吗?我只是想确保我没有损坏文件。

b) 我可以在一个 pod 文件中输入所有 pod 吗?

谢谢。

-- 更新--

1st Pod :

target '<Your Target Name>' do
        pod 'Alamofire', '~> 4.4'
    end

to download the next pod.

Just replace the 'Alamfire','~> 4.4' with pod 'JTAppleCalendar', '~> 7.0'

谢谢

        platform :ios, ‘9.0’
    use_frameworks!
    def pods
        pod 'SVProgressHUD'
        pod 'IQKeyboardManagerSwift', '4.0.6'
        pod 'Alamofire’
        pod ‘AlamofireImage’, ‘3.2.0’
        pod 'SDWebImage',  '~>3.8'
        pod ‘SAConfettiView’, :git => ‘https://github.com/gokhanakkurt/SAConfettiView.git’, :branch => ‘swift3’
    end

    target “<Your Target Name>” do
        pods
    end

    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.0'
            end
        end
    end