Phonegap/Cordova Build error – Apple Mach-O Linker Error: no such file or directory: libCordova.a

What I found confusing with PhoneGap/Cordova 2.1.0 by upgrading from 1.4 is that there are TWO projects in my application. There is MyApplication.xcodeproj and CordovaLib.xcodeproj. The changes to resolve this issue need to be applied to the CordovaLib project.

  • Change “Build Active Architecture Only” to “YES”
  • Update the text file project.pbxproj to these values
  • Toggle between the build schema for the simulator and the device (Use the select menu next to the stop button. Somehow this seems to cause the changes to be detected).

Did this work for you? Did I miss something?

PS: For a better understanding of the problem take a look at this Google Forum thread

Leave a Comment