ios - Can't import Alamofire -


i'm trying import alamofire inside class obtain error message cannot load underlying module 'alamofire' . did same steps importing library (swiftyjson), , worked well. podfile:

source 'https://github.com/cocoapods/specs.git' platform :ios, '8.0' use_frameworks!  target 'myapp'     pod 'swiftyjson', '~> 2.2.0'     pod 'alamofire', '~> 1.2' end  target 'myapptests'     pod 'swiftyjson', '~> 2.2.0'     pod 'alamofire', '~> 1.2' end 

then use $ pod install , can find alamofire module under pods.

when put in class import alamofire, isn't found (but swiftyjson is).

what i'm doing wrong?

this issue reported on github: https://github.com/alamofire/alamofire/issues/441

possible fixes mentioned there:

  • product -> clean
  • restart xcode

Comments