Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.5 no such file or directory - libCordova.a

Tags:

xcode

ios6

clang: error: no such file or directory: '/Users/admin/Library/Developer/Xcode/DerivedData/__TESTING__-fzbkvdbnndieeagphtjhdndiyttl/Build/Products/Debug-iphoneos/libCordova.a'

How do I get this a missing libCordova.a ?

align top
(source: kerrydeaf.com)

UPDATE: For Simon Germain. align top

UPDATE: For Simon Germain. I don't see "Identity and Type". I can see "Identity". I'm using xcode 4.5 align top
(source: kerrydeaf.com)

align top

UPDATE: For Simon Germain. I got the Identity.

align top
(source: kerrydeaf.com)

UPDATE: For Samuel

align top
(source: kerrydeaf.com)

UPDATE: For Simon Germain - Architecture.

UPDATE: For james0n - armv.

align top
(source: kerrydeaf.com)

UPDATE: For Simon Germain - Architecture.

UPDATE: For james0n - armv.

 Undefined symbols for architecture i386:
   "_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 i386
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

UPDATE: For james0n - Valid Architecture.

align top
(source: kerrydeaf.com)

UPDATE: It is now solved!!! make sure all armv7 and armv7s for ios 6 on all in xcode. It worked.

like image 830
Irishgirl Avatar asked Oct 03 '12 21:10

Irishgirl


3 Answers

For your project, set the build setting "Build Active Architecture Only" to yes.

(Maybe also set the the Architectures build setting to "Standard (armv7, armv7s)" for CordovaLib project.)

like image 141
james0n Avatar answered Nov 12 '22 18:11

james0n


Had (as many others) the same problem, here's what I did:

  1. Redid the Getting Started guide from Phonegap (including downloading and extracting the source again)
  2. Same problem with the HelloWorld app
  3. product - clean
  4. Changed both the 'HelloWorld' and 'CordovaLib'-project (so not the Targets) according to james0n's answer, settings:

Architectures: Standard (armv7, armv7s)

Build Active Architecture only: Yes

and then it magically worked, I think steps 3 and 4 did it however.

like image 9
andy Avatar answered Nov 12 '22 20:11

andy


Only need to remove armv6 from both YourProject and CordovaLib: remove armv6 from CordovaLib and do the same for YourProject

The consequences of doing this? Apparently, it's still working on iPhone 3GS, but not the previous versions..

like image 4
Samuel Avatar answered Nov 12 '22 19:11

Samuel