"_NSURLIsExcludedFromBackupKey", referenced from: [CDVFile setMetadata:withDict:] in Cordova, ld: symbol(s) not found for architecture i386

 Hi, Last week I have updated my PhoneGap (Cordova) version from 1.3 to 1.9, for both IPhone as well as Android. In XCode I have installed the newer version of Cordova and I have created new project using Cordovo 1.9. When I was running my application I got the following error and also the compilation was failed. The error is,

Undefined symbols for architecture i386:
 "_NSURLIsExcludedFromBackupKey", referenced from: [CDVFile setMetadata:withDict:] in Cordova, 
ld: symbol(s) not found for architecture i386

For fixing this issue, I have updated my AppDelegate.h file with following code.

#import <UIKit/UIKit.h>

    #import <Cordova/CDVViewController.h>
   #import "CDVViewController.h"

NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey"; 
@interface AppDelegate : NSObject < UIApplicationDelegate > {


Popular Posts