Information Technology Reference
In-Depth Information
FIGURE 17.8
Adding the code to be tested to the test build
Optionally, if you have multiple versions of Xcode installed, you can choose to run a specific version of the
OCUnit testing package, as shown in Figure 17.9. The package is run as a script. The default selects the stand-
ard system script, which should be suitable for most projects. The modified default shown in the figure selects
the most recent version. You may also need to do this if Xcode can't find the standard script, so it's worth know-
ing that this option exists.
FIGURE 17.9
Selecting the test script using the Run Script option in the Build Phases. You don't usually need to do this, but it is
worth knowing how to change this option in case you want to customize the process.