Xcode:将项目添加为构建依赖项 [英] Xcode : Adding a project as a build dependency

查看:396
本文介绍了Xcode:将项目添加为构建依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩 soundcloud api ,表示要


  • 将SoundCloudAPI.xcodeproj拖放到您的项目中

  • 将其添加为构建依赖项

我可以很轻松地拖动项目,但是一个人如何完成下一步?

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:


  • 突出显示添加的项目在xcode中的文件浏览器中。在右侧的目录浏览器窗口中,它应该显示带有.a扩展名的文件。在目标列(目标图标)下有一个复选框,选中它。

  • 右键单击目标(​​在文件资源管理器中的目标项目下),然后选择获取信息

  • 在常规选项卡上是直接依赖项部分。点击加号按钮

  • 选择项目,然后单击添加目标

  • 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

这篇关于Xcode:将项目添加为构建依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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