我正在运行XCode 7,Swift 2.0,iOS 9。
我想使用Cocoapods在我的项目中安装Alamofire。我已经完成了以下步骤:
gem install cocoapods
pod setup
pod init
将Podfile更新为:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
use_frameworks!
target 'JSONeg' do
pod 'Alamofire', :branch => 'swift-2'
end
然后我安装了pod:
pod install
接着我在ViewController.swift中添加了以下内容:
import Alamofire
这会引发以下错误:
Cannot load underlying module for 'Alamofire'
我尝试使用另一个pod,也出现了同样的错误,所以我猜测问题在于Cocoapods的安装。非常感谢您提供任何帮助。