Build dependencies and static libraries in Xcode 3

馋奶兔 提交于 2019-12-11 11:15:54

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/6179037/build-dependencies-and-static-libraries-in-xcode-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!