Adding an iOS Framework to a Project
Adding an iOS framework requires four steps:
1. Look through the documentation to try to find a framework that helps you solve a problem for your app or add a feature.
2. Add the framework to your project manually. This option is somewhat hidden in Xcode. It isn’t difficult to use after you find it.
3. Include any headers in the framework in your project files. Don’t forget this step! If you do, your project won’t build.
4. Use the objects, functions, data structures, constants, and other features of the framework in your code. You’ll probably need to do further research and experimentation to get them to work as advertised.
Let’s look at each step in more detail. We’ll try to create an app that draws a map on the screen.
Finding the framework you need
There are many ways to approach this. You can:
Look through the frameworks list to see if any names look relevant.
Look through the topic guides in the documentation to see which frameworks are mentioned.
Check online to see which frameworks are being used by other developers.
In this example, there’s no mapping topic, so we can’t immediately see a guide, how-to, or introduction. But we can see ...