I’ve created a Cordova 2.1.0 app it is building and running fine on simulator with the terminal command (~/cordova/emulate). However when I try to run it from the Xcode it is building fine but won’t run. I am using Xcode 4.5.1.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
OK. I feel like an idiot for all the steps I went through trying to track down this same problem. I’ve uninstalled and reinstalled so many things unncecessarily. I’m betting this is your problem.
The “scheme” dropdown menu bar near the top left of the Xcode window is actually two dropdown menus, even if it doesn’t look that way. Right now it probably says “CordovaLib>iPhone 6.0 Simulator” or something like that (depending on which simulator or device you’re trying to deploy to). Normally you click on the dropdown menu and get a list of simulators and devices available to choose from.
What you (and I) never noticed is that in the past it always said “yourProject>iPhone 6.0 Simulator” where yourProject is the target (i.e. your project name). Click on the “CordovaLib” portion of text and it will give you a different dropdown menu to select your project. Then you click on the simulator portion of the dropdown menu to select the device you want to deploy to. Hit run and it should work fine.