Preparing a project for application unit testing
The steps for preparing a project for application unit testing are as follows:
- Make a duplicate copy of your application's primary build target.
- Right click the primary project build target and select Duplicate:
- Rename the newly created duplicate target to
<application_name>_Testing. In our case and for our purposes, it has been renamed to iOS_Project_Testing.
- Rename the automatically created scheme to match the newly created build target by clicking Manage Schemes from the Schemes drop down menu: