0

Hi I'm a newbie when it come to app development, but I DID have an app working just fine until I upgraded to xcode 4.5. The app has not changed but I am now getting 'Build Failed' when trying to put the same app on the same iPad I have always used.

The error I am receiving is show here http://i1342.photobucket.com/albums/o763/designedbyria/ScreenShot2012-09-27at162319_zpsfea02141.png (I stupidly am not able to include images) - Apple Mach-O Linker Error, does anyone know how I can solve this? I really don't have a clue what's going on and it's important I get this app working asap!

Any and all help will be greatly appreciated! Thank you in advance…

Nick Wood
  • 11
  • 4

2 Answers2

2

If your app is for iPad only, just remove armv7s from valid architectures. You can also do this for iPhone apps, and it will run on all viable targets, although it will be missing armv7s, which is the CPU for iPhone 5 - armv7 code will still run.

Alternatively, you can find an upgraded version of the Cordova framework built with armv7s support; you should just be able to build it yourself.

Paul Lynch
  • 19,769
  • 4
  • 37
  • 41
  • Thanks Paul, this sounds like a good solution - the apps are going to be used in house only and only on iPads, could you please let me know how to remover armv7s for valid architectures? As I mentioned earlier I'm very new to this - apologies if this is a silly question. – Nick Wood Sep 27 '12 at 15:44
  • Select the project in the left hand browser, then Build Settings/All. You need to edit "Valid Architectures". – Paul Lynch Sep 27 '12 at 15:46
  • man alive, I thought that would work... I'm now recieving a completely different error "No architectures to compile for (ARCHS=armv6,armv6s armv7 armv7s, VALID_ARCHS=)."http://i1342.photobucket.com/albums/o763/designedbyria/ScreenShot2012-09-27at165112_zps566b80c2.png I think I may have done something wrong in architectures? It did say armv6 or something but now armv7... please help – Nick Wood Sep 27 '12 at 15:54
  • You removed everything from valid architectures. For iPad only use, all you need is armv7. – Paul Lynch Sep 28 '12 at 08:06
  • Thanks so much Paul, adding armv7 in architectures has fixed the problem and it now works :) your a lifesaver! – Nick Wood Oct 01 '12 at 10:04
  • Paul, you are genius. :-) – Clement Ho Sep 21 '13 at 16:28
0

The error is on the line above. A framework you are linking (Cordova.framework) does not contain a binary for the appropriate processor architecture (armv7s).

mipadi
  • 398,885
  • 90
  • 523
  • 479