我尝试了CocoaPods并在尝试了几个小时之后结束了这个问题,并认为它是CocoaPods。卸载了CocoaPods并手动安装了SDK并解决了同样的问题。
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool
{
GAI.sharedInstance().trackerWithTrackingId("UA-XXXX-Y");
return true
}
这会导致错误Use of unresolved identifier "GAI"
。我有一个桥接头,可以导入相应的头文件和构建阶段中包含的所有必需库。请帮忙!