title: iOS PhoneGap Build Failure
body: <p>I am new to <code>PhoneGap</code> for iOS and Xcode.  I am having an issue with my app that worked on Android phones just fine.  I'm able to build and run the app in the iOS simulator but when I archive it to test on devices I get the error below.  I've searched all over and cannot find something that works.</p>
  
  <p>Error:</p>
  
  <pre><code>ld: warning: ignoring file /Users/danlehman/Library/Developer/Xcode/DerivedData/HelloWorld-ebkivbdaivqchkgycifnnpgixspn/Build/Intermediates/ArchiveIntermediates/HelloWorld/BuildProductsPath/Release-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/danlehman/Library/Developer/Xcode/DerivedData/HelloWorld-ebkivbdaivqchkgycifnnpgixspn/Build/Intermediates/ArchiveIntermediates/HelloWorld/BuildProductsPath/Release-iphoneos/libCordova.a
  Undefined symbols for architecture armv7s:
    "_OBJC_METACLASS_$_CDVViewController", referenced from:
        _OBJC_METACLASS_$_MainViewController in MainViewController.o
    "_OBJC_CLASS_$_CDVViewController", referenced from:
        _OBJC_CLASS_$_MainViewController in MainViewController.o
    "_OBJC_CLASS_$_CDVURLProtocol", referenced from:
        objc-class-ref in AppDelegate.o
  ld: symbol(s) not found for architecture armv7s
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>