Phonegap / Cordova 3.4. Clean build gets apple linker error

I tried several options in stackoverflow. But none of them seem to work.

My project is just a clean build of phone calls.

I just updated the phone table from 3.3 to 3.4, and I get the following messages: https://www.dropbox.com/s/7zsn21n5sakp0d3/Screenshot%202014-03-18%2012.50.03.png

+8
cordova
source share
4 answers

I found a solution:

  • Select project icon
  • Select Build Settings.
  • For "Architectures" select $ ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64).
  • For "Virtual architectures" add "arm64"
  • Select the icon CordovaLib.xcodeproj
  • In the build settings for Project (not Target), delete the conditional architecture settings (this is any value in the "Release" or "Debug" section - hover over the minus)
  • For "Architectures" select $ ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64).
  • For "Virtual architectures" add "arm64"
  • Go to 6, but now do it for "Target"

a source

+14
source share

Try it...

In Xcode, click the project and go to Build Settings> Architectures> Only Build Active Architecture and set the Debug and Release option to Yes .

Your mistake seems like what happened to me.

More details here ... Phonegap / Cordova error Apple Mach-O Linker build error: no such file or directory: libCordova.a

+3
source share

Make sure that the settings for Build Settings> Architectures> Build Active Architecture are equal for both the CordovaLib project and your application project. If CordovaLib was created only for an active architecture, you will get a linker error when Xcode tries to build the rest of the project for other architectures.

+1
source share

Build Settings > Architectures

enter image description here

0
source share

All Articles