Swift3 你是怎么看待阿拉莫菲尔的?

Swift3 你是怎么看待阿拉莫菲尔的?,swift3,cocoapods,xcode8,alamofire,Swift3,Cocoapods,Xcode8,Alamofire,我用不同的名称创建了一个xcode项目的副本。现在,我想删除alamorefire及其生成的相关pod,以便重新安装alamorefire框架。首先在pod文件中对库进行注释,如下所示: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '10.0' use_frameworks! target '<Your Target Name>' do #pod 'Alamofire', '~> 4.4

我用不同的名称创建了一个xcode项目的副本。现在,我想删除alamorefire及其生成的相关pod,以便重新安装alamorefire框架。

首先在pod文件中对库进行注释,如下所示:

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

target '<Your Target Name>' do
    #pod 'Alamofire', '~> 4.4'
end
这将从项目中删除库。在那一行之后:

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

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

库将重新安装到您的项目中

那么你想更新alamofire的版本?
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

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