简体   繁体   中英

Build dependencies and static libraries in Xcode 3

I'm trying to get the example project for an SoundCloud API wrapper working using XCode 3. There are some few basic instructions at the start , but I'm having trouble:

QuickStart

In your terminal:

  • git clone
  • git://github.com/soundcloud/cocoa-api-wrapper.git
  • SoundCloudAPI cd SoundCloudAPI git submodule update --recursive --init

In your Xcode project:

  • drag SoundCloudAPI.xcodeproj into your project
  • add it as a build dependency
  • add the static library as a liked target
  • add "[relative path to SoundCloudAPI]/Sources/SoundCloudAPI" to your header search path in the build settings
  • you can also include the OAuth2Client headers by adding "[relative path to SoundCloudAPI]/Outsourced/OAuth2Client/Sources/OAuth2Client" too (although you might not need them)

I've completely ignored the part before In Your Xcode project. I think I've done everything correctly to add the build dependency following this post , the frameworks are still marked in red as if they were missing. Any advice?

Also the three points after that are also not very clear? Could someone explain these in a bit more detail? For example, where is the header search path? and where are the build settings?

Thanks so much!

Tip: Given that you've tagged this question with iphone , I'll assume you're building an iPhone app. In that case, you need to add libSoundCloudAPI.a as a direct dependency, but not SoundCloudAPI.framework.

To set the header search path in Xcode 3:

  1. Ctrl-click your app's target (inside Targets in the Group & Files panel on the left hand side) and choose Get Info
  2. Click the Build tab - these are the build settings: :-)
  3. Set Configuration: to All Configurations , Show: to All Settings
  4. In the Search Paths section, update Header Search Paths

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM