LuckyLuke
LuckyLuke

Reputation: 49077

Adding OCUnit to excisting project in XCode

I am trying to add OCUnit to a excisting XCode project however I am not able to run it. The "Test" row in the "Product" menu is gray after following this guide. Anyone having another tutorial or know how to that? Or other solutions.

Upvotes: 1

Views: 296

Answers (1)

Swift Dev Journal
Swift Dev Journal

Reputation: 20088

You have to edit the scheme for the application target to enable the Test item in the Product menu. To open the scheme editor, click on the Scheme menu in the project window toolbar and choose Edit Scheme. Select the Test step on the left side of the scheme editor. The list of tests should be empty. Click the + button to open a target sheet. Select the unit testing target from the list and click the Add button.

Upvotes: 2

Related Questions