Xcode 4.5 and Phonegap 2.0 reference issue

cordova, xcode

Solution

If you also take out armv7s from the build settings, you should get it to build for you.

Edit: As per below: Fix can be found here via PhoneGap: https://issues.apache.org/jira/browse/CB-1360

Problem

Yesterday I updated new Xcode 4.5, and I got an error in my build and I am not sure how can I even fix this. Everything works fine if I build in simulator, but when I try to build for Archive for example, i get this: ``` ld: warning: ignoring file /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/corotchi/Library/Developer/Xcode/DerivedData/NJR_IR-ftjwhrqtxwedihfjrbjikbqqttkx/Build/Products/Release-iphoneos/libCordova.a Undefined symbols for architecture armv7s: "_OBJC_CLASS_$_CDVURLProtocol", referenced from: objc-class-ref in AppDelegate.o "_OBJC_CLASS_$_CDVViewController", referenced from: _OBJC_CLASS_$_MainViewController in MainViewController.o "_OBJC_METACLASS_$_CDVViewController", referenced from: _OBJC_METACLASS_$_MainViewController in MainViewController.o ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` and more errors bellow, which are the same Everything worked fine until u updated the Xcode, I had another issue before where I read the formums that I have to remove the "ARMV6" from the build settings, cause it is not supported anymore in new IOS, and after that I get this reference issue. I appreciate any help, THanks!!!!

Original source