我的问题是如何在iOS中真正实现和使用cocoapod模块,我想在我的nativescript应用程序中使用谷歌转换跟踪窗口,但我不能让它工作。我可以安装吊舱,但是当我尝试使用它时,我不可能。Nativescript - cocoapod /谷歌转换跟踪
是否有任何良好的指导如何使用nativescript实现cocoapod模块?
这是代码我尝试在我的app.module.ts
class MyDelegate extends UIResponder implements UIApplicationDelegate {
public static ObjCProtocols = [UIApplicationDelegate];
applicationDidFinishLaunchingWithOptions(application: UIApplication, launchOptions: NSDictionary): boolean {
console.log("applicationWillFinishLaunchingWithOptions");
// Google iOS in-app conversion tracking snippet
// Add this code to the event you'd like to track in your [ACTAutomatedUsageTracker enableAutomatedUsageReportingWithConversionID:@"12345678"];
//ACTConversionReporter.reportWithConversionIDLabelValueIsRepeatable("12345678", "AASsoighsingaxx", "0.00", true);
[ACTConversionReporter reportWithConversionID:@"12345678" label:@"AASsoighsingaxx" value:@"0.00" isRepeatable:YES];
return true;
}
applicationDidBecomeActive(application: UIApplication): void {
console.log("applicationDidBecomeActive: " + application)
}
}
application.ios.delegate = MyDelegate;
我是支持声明任何进口跑?如果是这样,怎么样? 我使用https://docs.nativescript.org/plugins/cocoapods中解释的方法安装吊舱。