Xcode : Adding a project as a build dependency

Aran Mulholland picture Aran Mulholland · Nov 18, 2010 · Viewed 106.6k times · Source

Im playing around with the soundcloud api, in its instructions it says to

  • drag SoundCloudAPI.xcodeproj into your project
  • add it as a build dependency

I can drag the project in pretty easily, but how does one accomplish the next step?

Answer

theChrisKent picture theChrisKent · Nov 18, 2010

To add it as a dependency do the following:

  • Highlight the added project in your file explorer within xcode. In the directory browser window to the right it should show a file with a .a extension. There is a checkbox under the target column (target icon), check it.
  • Right-Click on your Target (under the targets item in the file explorer) and choose Get Info
  • On the general tab is a Direct Dependencies section. Hit the plus button
  • Choose the project and click Add Target