I try to import Alamofire inside my class, but I get the Cannot load underlying module for 'Alamofire' error message. I followed the same steps by importing another library (SwiftyJSON) and it worked. This is my sub-file:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'SwiftyJSON', '~> 2.2.0' pod 'Alamofire', '~> 1.2' end target 'MyAppTests' do pod 'SwiftyJSON', '~> 2.2.0' pod 'Alamofire', '~> 1.2' end
Then I use $ pod install , and I can find Alamofire as a module under Pods.
When I put import Alamofire in my class, it is not found (but SwiftyJSON is).
What am I doing wrong?
source share