"_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>
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVViewController.h>
#else
#import "CDVViewController.h"
#endif
NSString * const NSURLIsExcludedFromBackupKey = @"NSURLIsExcludedFromBackupKey";
@interface AppDelegate : NSObject < UIApplicationDelegate > {
}
Comments