gpt4 book ai didi

ios - iOS-Cordova插件Tagmanager错误

转载 作者:行者123 更新时间:2023-12-01 16:15:13 24 4
gpt4 key购买 nike

由于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:'

最佳答案

我找到了解决方案。

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

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

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

in methods: successWithMessage y failWithMessage

关于ios - iOS-Cordova插件Tagmanager错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35578772/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com