How to "add existing frameworks" in Xcode 4?

Ariel Malka picture Ariel Malka · Jul 28, 2010 · Viewed 328k times · Source

I can't find the good old "Add existing frameworks" option. How do I do this?

We're talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).

Answer

Cyber picture Cyber · Jul 31, 2010

As per Apple's documentation:

  1. In the project navigator, select your project.
  2. Select your target.
  3. Select the "Build Phases" tab.
  4. Open "Link Binaries With Libraries" expander.
  5. Click the + button.
  6. Select your framework.
  7. (optional) Drag and drop the added framework to the "Frameworks" group.