I\'m using Xcode 9.0.
My pod file:
pod \'Alamofire\', \'~> 4.3\'
pod \'SwiftyJSON\'
pod \'AlamofireSwiftyJSON\'
pod
This could also happen if you have two different Xcode versions installed side by side and then building with one that points to wrong command line tools. I experienced this problem after installing Xcode 10.1 next to (updated) Xcode 10.2. My Xcode 10.1 was pointing to Xcode 10.2 command line tools, so linking failed with invalid bitcode version, same as in your case. The fix was:
Change Command Line Tools in Xcode Preferences -> Locations -> Command Line Tools:
Clean build folder and hit Archive.
The above is also valid for other Xcode versions.