iOS - cordova插件tagmanager错误

时间:2016-02-23 13:24:11

标签: ios cordova google-tag-manager

由于cordova-plugin-tag-manager,我在cordova项目的构建阶段遇到了这个错误:

Plugins/com.jareddickson.cordova.tag-manager/CDVTagManager.m:145:42: No visible @interface for 'CDVPluginResult' declares the selector 'toSuccessCallbackString:'

Plugins/com.jareddickson.cordova.tag-manager/CDVTagManager.m:145:42: No visible @interface for 'CDVPluginResult' declares the selector 'toErrorCallbackString:'

1 个答案:

答案 0 :(得分:0)

我找到了解决方案..

必须修改tagmanager插件,类CDVTagManager.m

replace: [self writeJavascript:[commandResult toErrorCallbackString:callbackID]];

with: [self.commandDelegate sendPluginResult:commandResult callbackId:callbackID];

in methods: successWithMessage y failWithMessage