target 'MyApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Alamofire', '~> 3.5' end
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
target 'MyAppUITests' do
inherit! :search_paths
# Pods for testing
end
这是pod文件,swift 2.3,Xcode VERSION 7.3.1。我正在尝试安装alamofire,但我收到了上面的错误,我搜索了谷歌,但没有任何有用的事情要做。有什么帮助吗?
答案 0 :(得分:2)
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
target 'MyProject' do
use_frameworks!
# Pods for MyProject
pod 'Alamofire', '~> 4.7'
end
希望这一定可行。还要检查您的Pod版本。
答案 1 :(得分:2)
首先尝试提高部署目标
如果不行的话
尝试一一运行这些命令