我正在尝试将Google App Indexing集成到我的 iOS / Swift 应用程序中。我通过 CocoaPods安装了它。问题是它没有解决任何谷歌的代码。这是我得到的:
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
var sanitizedURL = GSDDeepLink.handleDeepLink(url)
return true
}
编译错误说:Use of unresolved identifier 'GSDDeepLink'
。我尝试添加import GoogleAppIndexing
,甚至import GSDDeepLink
,但它说:no such module 'GoogleAppIndexing'
。任何想法或任何人都可以使用 Swift?