在Xcode 3中构建依赖关系和静态库 [英] Build dependencies and static libraries in Xcode 3

查看:66
本文介绍了在Xcode 3中构建依赖关系和静态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为使用XCode 3的SoundCloud API包装器提供示例项目.有一些

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:

快速入门

在您的终端中

  • git clone
  • git://github.com/soundcloud/cocoa-api-wrapper.git
  • SoundCloudAPI cd SoundCloudAPI git子模块更新-递归--init

在您的Xcode项目中:

In your Xcode project:

  • 将SoundCloudAPI.xcodeproj拖放到您的项目中
  • 将其添加为构建依赖项
  • 将静态库添加为喜欢的目标
  • 添加"[相对路径SoundCloudAPI]/Sources/SoundCloudAPI"到您的标题搜索路径中构建设置
  • 您还可以包括通过添加OAuth2Client标头"[SoundCloudAPI]/外包/OAuth2Client/Sources/OAuth2Client"也(尽管您可能不需要他们)

我已经完全忽略了In Your Xcode项目之前的部分.我认为我已正确完成了所有操作,以添加构建依赖项此帖子之后,仍将框架标记为红色,好像缺少它们一样.有什么建议吗?

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?

非常感谢!

推荐答案

提示:假设您已使用 iphone 标记了此问题,我将假定您正在构建iPhone应用程序.在这种情况下,您需要添加libSoundCloudAPI.a作为直接依赖项,而不是SoundCloudAPI.framework.

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.

要在Xcode 3中设置标题搜索路径,

To set the header search path in Xcode 3:

  1. 按住Ctrl键单击应用程序的目标(在组和文件"面板左侧的目标"内部),然后选择获取信息
  2. 点击 Build 标签-这些是构建设置!:-)
  3. 将配置:设置为所有配置,显示:将其设置为所有设置
  4. 搜索路径部分中,更新标题搜索路径
  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

这篇关于在Xcode 3中构建依赖关系和静态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆