I'm converting my swift 2.2 code to swift3 code in Xcode 8 and I have this line:
var request: Alamofire.Request?
Use of undeclared type Alamofire.
The code itself is ok. The issue is most probably with importing
Try the following steps:
import Alamofirein the swift file where you need to use Alamofire module (and
@import Alamofirein bridging header if needed)
If you see
No such module error, you should run
pod install command from Terminal and open the generated workspace instead of the project itself.