Cordova/phonegap-3.4 iOS日历插件线程警告无法修复

Cordova/phonegap-3.4 iOS日历插件线程警告无法修复,ios,multithreading,cordova,phonegap-plugins,cordova-plugins,Ios,Multithreading,Cordova,Phonegap Plugins,Cordova Plugins,似乎无法找到修复此警告的位置。我对这个相当陌生,我对objective-c不太了解 我正在使用来自的日历插件 当我将事件添加到日历中并按“确定”时,应用程序将中断,并显示“ 我在cordova文档中看到了关于线程的代码,但不确定在哪里添加代码以及如何使用它 - (void)myPluginMethod:(CDVInvokedUrlCommand*)command { // Check command.arguments here. [self.commandDelegate runInBackg

似乎无法找到修复此警告的位置。我对这个相当陌生,我对objective-c不太了解

我正在使用来自的日历插件

当我将事件添加到日历中并按“确定”时,应用程序将中断,并显示“

我在cordova文档中看到了关于线程的代码,但不确定在哪里添加代码以及如何使用它

- (void)myPluginMethod:(CDVInvokedUrlCommand*)command
{
// Check command.arguments here.
[self.commandDelegate runInBackground:^{
    NSString* payload = nil;
    // Some blocking logic...
    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:payload];
    // The sendPluginResult method is thread-safe.
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}

我非常感谢您的帮助,谢谢。

您可能应该在插件的github repo中添加一个问题?我怀疑这是您的错,而是插件的一个bug。谢谢您的回复,我尝试了这个,希望听到一些反馈。您找到了使用这个的方法吗?
- (void)myPluginMethod:(CDVInvokedUrlCommand*)command
{
// Check command.arguments here.
[self.commandDelegate runInBackground:^{
    NSString* payload = nil;
    // Some blocking logic...
    CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:payload];
    // The sendPluginResult method is thread-safe.
    [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}