O'Reilly logo

Xcode® 4 Unleashed, Second Edition by Frederic F. Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Adding a Library Target

In This Chapter

Adding targets

• Building a static library

• Managing dependencies

The passer_rating function is a tremendous achievement—and hard-won. It plainly has applications beyond that simple command-line tool, so let’s encapsulate its services for use in other programs.

All right, no, you won’t, but doing so will introduce some important skills. So you can create a static library (an archive of reusable code) for passer_rating. You can move its code from the passer-rating tool into the new library and link it back into the tool.

Adding a Target

You don’t need to start a new project to create a library—it’s better if you don’t. Open the passer-rating project in Xcode, and click the top entry, representing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required