I am trying to create an iOS app using a custom Cordova plugin. I am getting a Compiler Error when generating the app, but no other useful information. Where can I find more details about such error?


Thanks!

Hi Denis,

what is that error message?

Can you please share screen print?

Thanks and Regards,

Suraj Borade

Hi Denis,

There seems to be an issue with Cordova plugin, Can you please give us more details on that?

Thanks & Regards,

Swaroop Mutalik

I have attached the screenshot of the compiler error, which is non descriptive. Where can I get more information on the details (log?) of this error?


Regarding the iOS native plugin that does not compile, pretty simple stuff:

This is the .h:

//

//  OpenIn.h

//  

//

//  Created by Denis Mulder on 9/18/17.

//

//



#import <Foundation/Foundation.h>

#import <Cordova/CDV.h>



@interface OpenIn : CDVPlugin



@property (nonatomic, strong) NSURL* launchedURL;

@property (strong) NSString* callbackId;



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

- (void)applicationDidBecomeActive:(UIApplication *)application

- (void)jsSubscribeForEvent:(CDVInvokedUrlCommand *)command;



@end


and this is the .m:


/********* OpenIn.m Cordova Plugin Implementation *******/



#import "OpenIn.h"



@implementation OpenIn



- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    self.launchedURL = [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey];



}



- (void)applicationDidBecomeActive:(UIApplication *)application

{

    if (self.launchedURL) {

         pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:self.launchedURL];

        [self.commandDelegate sendPluginResult:pluginResult callbackId:self.callbackId];

        self.launchedURL = nil;

    }

}



#pragma mark Methods, available from JavaScript side



- (void)jsSubscribeForEvent:(CDVInvokedUrlCommand *)command {



    CDVPluginResult* pluginResult = nil;

   

    self.callbackId = command.callbackId;

    self.launchedURL = nil;

}



@end


I found the errors in my native code causing the compiler errors. Question remains: when app generation gives compiler errors, where can I see the details of those errors? I was not able to find any other logs than the mobile app log, which does not show any detail.