In an iOS app I'm developing, I need to add Google+ sign-in feature. The app is developed in Swift.
I added the GooglePlus iOS SDK through CocoaPods. Please note that I have CocoaPods v0.36 beta installed which officially supports Swift. I've integrated many Objective-C libraries with Swift projects this way before.
The pod installation was successful. Then I needed to import the framework to files where I wanted to use its methods so I added the below lines to the top of the file.
import GooglePlus
import GoogleOpenSource
But when I build the project I get the following errors.
No such module 'GooglePlus'
No such module 'GoogleOpenSource'
What am I doing wrong here? Am I specifying the correct names?
Edit: I'm aware of using the bridging header. But the latest CocoaPods supports adding Obj-C libraries to projects. It automatically converts them to frameworks so that you could use them the Swift way. I've done it before with some other Obj-C libraries without the bridging header. It fails with Google+'s iOS SDK.