Debug & run a console application on xcode

I'd like to run and debug a group of console applications. I got the source code from the Internet, and I can build it successfully. However, the debug aptions are all disabled, as the Run option in Product. I think that's because I couldn't set the application to run, as there are different options in that lib.


In the print below, I'd like to run and debug the lasinfo.cpp app.


How can I do that?


Tks in advance,


Mauro Assis


User uploaded file

Mac mini, Mac OS X (10.7.5), xCode 5

Posted on Nov 11, 2013 11:57 AM

Reply
1 reply

Nov 11, 2013 12:48 PM in response to Mauro Assis

You must choose a target to run from the Scheme menu in the project window toolbar. If you look at your screenshot, you would click the ALL_BUILD target at the top of the screenshot and choose the target you want to run, which would be lasinfo in your case.


If you don't see a list of all the targets in your project when you click the ALL_BUILD target, choose Manage Schemes. Click the Autocreate Schemes Now button. That should create a scheme for each target in your project. If it doesn't, you're going to have a lot of work choosing the program you want to run. You'll have to edit the scheme, click on the Run step, and choose the program you want to run. Since you have 21 targets in your project, switching targets will be tedious. Xcode wasn't designed to work with that many targets. For command-line projects, Xcode was designed for one application per project.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Debug & run a console application on xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.