I am trying to import and use the OAuthSwift library in the Swift iOS project. I followed their directions:
No such module 'OAuthSwift'
Build Phases > Target Dependencies
Build Phases > Link Binary With Libraries
Build Phases > Embed Frameworks
General > Embedded Libraries
Build Settings > Search Paths > Framework Search Paths
Build Settings > Search Paths > Library Search Paths
No such module 'Alamofire'
Your life will be a lot easier if you import the framework using CocoaPods. If you haven't used them before, it's really easy once you get set-up. You use Ruby Gems on the command line to install CocoaPods (sudo gem install cocoa pods) and then create a create a pod file using pod init. After this you modify it to include:
platform :ios, '8.0' use_frameworks! pod 'OAuthSwift', '~> 0.5.0'
Save the file and run pod install.
Once this is complete you will have to close out the Xcode project and use the newly created .xcworkspace project file (not the .xcodeproj) from here forward.
Here is a link to another post for a secondary reference. How to install cocoa pods?