9

I don't have any problem following the guide to on PhoneGap Documentation to upgrade their library. However, when I check with device.cordova, it shows "2.3.0" which is my previous version.

When I installed cordova.2.3.0, I did run

[phonegap-2.3.0]/bin/update_cordova_subproject [myproject]

because the project was copied over from other computer. Thinking that it shows 2.3.0 because I use absolute path for that CordovaLib subproject, I update my subproject again with

[phonegap-2.5.0]/bin/update_cordova_subproject [myproject]

Now when I build my project, I get this error

Undefined symbols for architecture armv7:
  "_ALAssetPropertyDate", referenced from:
      ___23-[CDVFile getMetadata:]_block_invoke in libCordova.a(CDVFile.o)
      ___27-[CDVFile getFileMetadata:]_block_invoke in libCordova.a(CDVFile.o)
  "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
      objc-class-ref in libCordova.a(CDVFile.o)
      objc-class-ref in libCordova.a(CDVFileTransfer.o)
      objc-class-ref in libCordova.a(CDVURLProtocol.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Can anyone help me with the errors? Or at least let me know what these errors mean?

2 Answers 2

22

As Gary mentioned, you need to add the AssetsLibrary.framework. Add it from the Linked and Frameworks list. Now what happened to me is twas added at the root of the project tree, you can just drag it down to the Frameworks folder.

1
9

Looks like you need to link against the AssetsLibrary.framework

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.