8

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

My project is just a clean phonegap build.

I just updated phonegap from 3.3 to 3.4 and i get these messages: https://www.dropbox.com/s/7zsn21n5sakp0d3/Screenshot%202014-03-18%2012.50.03.png

peterdoesco.de
  • 529
  • 3
  • 19

4 Answers4

14

i found the solution:

  1. Select your Project icon
  2. Choose Build Settings.
  3. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  4. For "Valid Architectures", add "arm64"
  5. Select your CordovaLib.xcodeproj icon
  6. In the Build Settings for the Project (not Target), delete the conditional architecture settings (this is any value under "Release" or "Debug" - hover to see the minus sign)
  7. For "Architectures", select $ARCHS_STANDARD - Standard architectures (armv7, armv7s, arm64)
  8. For "Valid Architectures", add "arm64"
  9. Goto 6, but now do it for "Target"

source

you786
  • 3,659
  • 5
  • 48
  • 74
peterdoesco.de
  • 529
  • 3
  • 19
3

Try this...

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

Your error seems similar to something that happened to me.

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

Community
  • 1
  • 1
Mulhoon
  • 1,852
  • 21
  • 26
1

Check that the Build Settings > Architectures > Build Active Architecture Only settings are equal for both the CordovaLib project and your app's project. If the CordovaLib is only built for the active architecture, you will get a linker error when XCode tries to build the rest of the project for other architectures.

Dag Høidahl
  • 7,873
  • 8
  • 53
  • 66
0

Build Settings > Architectures

enter image description here

Nurdin
  • 23,382
  • 43
  • 130
  • 308