Summary
You’ve divided the passer-rating application into a main executable and a static library. It hardly deserves it, but it’s just an example.
On the way, you created a target to assemble and build the files needed for the new library, and distributed files between the library and the main program. You added the libpasser.a library product to the main passer-rating target.
You saw that Xcode does right by you in two important ways: Adding the library to the application target not only linked the library into the application, it ensured that the library is always brought up-to-date when the application is built. And, it incorporated the debugging information from the library so you can examine the working of the library while the application ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access