Step 1
Add a new target to your Xcode project. This is found under the New submenu of the File menu.
Step by step instructions for executing Boost unit tests in Xcode.
The following is a series of brief, step-by-step instructions on setting up a project to compile and run Boost unit tests from Xcode. These steps assume a workable knowledge of Xcode and how to build projects. They are intended to provide a short overview of how the associated demonstration project was set up.
Add a new target to your Xcode project. This is found under the New submenu of the File menu.
Choose the Aggregate target under the Other group. Give it a meaningful name.
Create a folder called "tests" at your source root (where you have your Xcode project).
Create your unit test files in the tests folder and add them to your Xcode project. They should be added to your new aggregate build target. (I'm assuming you already know how to do this).
Copy the run_tests.sh shell script from the repository into the tests folder.
Configure your Build Settings for the aggregate build target. Set your header search path to wherever your headers are located.
Set the linker flags for the Build Settings of your aggregate build target.
Configure the Build Phases of your aggregate build target. Your dependencies should include whatever libraries you are linking against that need to be built. You'll also need to add a Run Script phase that executes the script in tests.
exec "${SRCROOT}/tests/run_tests.sh"
exit 1
Choose your aggregate build target and build.