Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crashing of Phonegap 1.9.0 application due to _NSURLIsExcludedFromBackupKey error

I am trying to load the HelloWorld Example in Phonegap 1.9.0 using iOS and i am having some problems doing that... I am following this: http://docs.phonegap.com/en/1.9.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS It says Apple Mach-O Linker(Id) Error.

When I click the error, it says:

Undefined symbols for architecture i386:
  "_NSURLIsExcludedFromBackupKey", referenced from:
      -[CDVFile setMetadata:withDict:] in Cordova
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I wrote a similar app that doesn't use phone gap and it runs properly... But when i used phone gap, it is giving me this error.. Not sure what to do...Need some guidance.

like image 856
lakshmen Avatar asked Jul 04 '12 11:07

lakshmen


1 Answers

In the latest phonegap version: 1.9.0, there is error saying _NSURLIsExcludedFromBackupKey.

To solve this, add this to AppDelegate.m

NSString * const NSURLIsExcludedFromBackupKey =@"NSURLIsExcludedFromBackupKey";

This will help to solve the error.. Nothing to do with the architecture...

Those who new to PhoneGap can watch these videos:

PArt 1: http://www.youtube.com/watch?v=zXf1zyKQ5Hw&feature=relmfu

Part 2: http://www.youtube.com/watch?v=t95KG_SFppU

like image 72
lakshmen Avatar answered Sep 21 '22 10:09

lakshmen