Xcode : Adding a project as a build dependency
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?
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
- Select your project in the navigator on left.
- Open up the drawer in the middle pane and select your target.
- Select Build Phases
- Target Dependencies is an option at that point.