Warrior
Warrior

Reputation: 39374

Create a seperate OCunit test project in iphone

If i want to do unit testing for my existing project i am adding a test target to the existing project and writing test case with in the available project. I dont want to submit the app with test classes to the appstore. Is there any way i can create a separate project for unit testing and it links to the original project by giving the path. So that i have two separate codes

1) original project code

2) Unit test code.

Please let me know how can i achieve it.

Thanks a lot.

Upvotes: 1

Views: 55

Answers (1)

e1985
e1985

Reputation: 6279

Your test classes are only compiled in your test target, so you do not need to create a separate project for testing because when you archive you are only building your application target, not the test one.

Upvotes: 1

Related Questions