Yesterday (3/10/14) when iOS 7.1 was released I also upgraded to Xcode 5.1 and found that my PhoneGap/Cordova project would no longer compile to my iPhone 5s. I also upgrade
Follow the instructions on this video: https://www.youtube.com/watch?v=EIkJAKcz8DE
Just add arm64 in your projects valid architectures and remove all the conditional architecture of Cordova's project.
I was able to get my app to build in XCode 5.1 by first building the CordovaLib project separately from within XCode and then building my project.
@Shazron posted the fix on the Apache JIRA - he notes that the fix will be released as part of Cordova 3.5:
Here's a link to Shazron's complete writeup of this problem: http://shazronatadobe.wordpress.com/2014/03/12/xcode-5-1-and-cordova-ios/
It is now released and the short version of what to do is:
Cordova CLI 3.4.1-0.1.0 is out, which includes Cordova iOS 3.4.1 which incorporates all the fixes mentioned in this blog post. Update your Cordova CLI, and if you have an existing project, do a “cordova platform update ios“.
You just have to add the arm64 architecture on every statement and building setting, i mean, on your current project, and on the cordova project.
On your project:
on Cordova:
AND THE MOST IMPORTANT
-Valid architectures at cordova build settings
This configuration generates a lot of warnings, but is just change the "%d" for "%ld" at all lines that the warning says.
Grab the xcode icon and drag it to the bin!
Go here https://developer.apple.com/downloads/index.action?name=Xcode and download 5.0.2 and install.
After installing, run xcode, then try the emulator from terminal.
Worked for me, annoying though!
Another approach that works: