Chapter 10. Libraries and Dependent Targets

<feature><title>In This Chapter</title>
  • Adding a Target to a Project

  • Assigning Files to Targets

  • Including One Target in Another

  • Examining Library Contents

</feature>

Doing all the statistical work within Linrg has been fun, but it’s time to bring that tool into the application. In this chapter, we create a C library for linear regressions as an additional target for the Linear project. We’ll see how to make one target in a project depend on another, so that we can ensure that our application target always has a current version of the library.

Adding a Target

We want our project to produce an additional product: a static library. Each product in a project is the result of a target. In the Project menu, select ...

Get Xcode 3 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.