In order to automatically send email in my iOS app, I've been going along with this thread: How to send emails in Swift using Mailgun. I've installed Mailgun successfully with CocoaPods but am still getting the error "Use of unresolved identifier 'Mailgun'' when I reference it in my view controller.
My bridging header file is all set up based on threads like this one: Swift "Bridging-Header.h" file not allowing me to instantiate objective-c classes in .swift files. It looks like this:
#ifndef MailGunTest_Bridging_Header_h
#define MailGunTest_Bridging_Header_h
#import <mailgun/Mailgun.h>
#endif
I've used pods a little bit before and haven't run into this problem but it could be something really obvious. Or, I could be using the framework incorrectly somehow in referencing Mailgun but according to the aforementioned thread that shouldn't be a problem.
I'm not sure what OP means on that thread by "I had to go to Product -> Schemes -> Edit Schemes and add the Pods-mailgun to the top of the list". Did he mean the build list? If so, I tried adding Pods-mailgun to the targets in the build list but it still doesn't seem to be working.
Any help would be greatly appreciated!