【发布时间】:2017-05-30 20:16:44
【问题描述】:
我用不同的名称创建了我的 xcode 项目的副本。我现在想删除 alamorefire 以及与之相关的 pod,以便我可以重新安装 alamorefire 框架。
【问题讨论】:
-
所以要更新alamofire的版本?
标签: swift3 cocoapods xcode8 alamofire
我用不同的名称创建了我的 xcode 项目的副本。我现在想删除 alamorefire 以及与之相关的 pod,以便我可以重新安装 alamorefire 框架。
【问题讨论】:
标签: swift3 cocoapods xcode8 alamofire
首先在您的 Podfile 中评论您的库,如下所示:
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
这将从您的项目中删除库。然后打开注释行:
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
库将重新安装在您的项目中。
【讨论】: