Apparently I have managed to build my project in Xcode 9 beta and now I only get the error
Module compiled with swift 4.0 cannot be imported in swift 3.1<
You have two options that you can do:
Clean
the project and then try to re-build
your solution and see if it works.
If it don´t work and you still get the same error message then do the following steps and it should work for you:
podfile
and remove Alamofire
pod update
Alamofire
to your podfile
pod update
clean
your project and run it