Xcode 4.5 and Phonegap 2.0 help issue

Yesterday I updated the new Xcode 4.5 and I got an error in my build, and I'm not sure how I can fix it.

Everything works fine if I create a simulator, but when I try to create for Archive, for example, I get the following:

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 below which are the same

Everything worked fine until u updated Xcode, I had one more problem before I read the forms in which I need to remove " ARMV6 " from the build settings, because it is no longer supported by the new iOS, and after that I get this problem.

I appreciate any help, Thanks !!!!

+4
source share
4 answers

If you also pull armv7s from the build settings, you should get it for the build.

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

+5
source

Remove armv7 from Virtual Architectures from both the project and the Cordova project (phonegap). Also set the deployment target for iOS 4.3 or higher in the Project project and Cordova (phonegap). After that Clean and Clean Build Folder. This will solve the problem.

+8
source

This is a bug already fixed in Cordova 2.2.0

https://issues.apache.org/jira/browse/CB-1360

+1
source

Change the Buid parameter ---> Architecture ---> Only create an active architecture ---> Yes. This solved my problem for using old versions of the cord in the new Xcode 5.

+1
source

Source: https://habr.com/ru/post/1435514/


All Articles