golmschenk
golmschenk

Reputation: 12424

AppCode - Debug C++ program within Objective-C project?

I have an Objective-C project with a large portion of it written in C++. I've also written a C++ main file in the project which allows the processing done in the C++ side of things to be run as a standalone without the iOS component. Is there anyway to setup a C++ debug execution configuration inside of the iOS project? As far as I can see I can only create configurations meant to run on an iOS device when in an iOS project. Yet, AppCode does have the project type to create command line tools. Is there anyway to enable those command line tool configurations inside of an iOS project? Thank you much!

Upvotes: 0

Views: 503

Answers (1)

Mobile Ben
Mobile Ben

Reputation: 7341

Yep, you can do it using your current project.

Here are some screenshots which hopefully are clear enough. Note this is Xcode 6.

In Xcode, in the Nav Area, select the project (selected on the left in the image). You'll see your targets. Click on that '+' to add a new target.

Add Target

You'll then get a a dialog sheet where you can select your OSX Command Line Tool. It will then let you configure how that target is setup.

Create Target Dialog

Upvotes: 1

Related Questions