如何使用Xcode和Git处理不同的库搜索路径? [英] How to handle different Library Search Paths with Xcode and Git?

查看:77
本文介绍了如何使用Xcode和Git处理不同的库搜索路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在和朋友一起开发应用程序.

I am working on an app with a friend.

我们使用git(专用)作为版本控制系统.我们面临的问题是Xcode(5.1 DP2)发出以下警告:"Apple Mach-O链接器警告-找不到...的目录"

We use git (private) as versioning system. The problem we face is that Xcode (5.1 DP2) gives this warning: "Apple Mach-O Linker Warning - Directory not found for ..."

产生此警告的原因是Xcode在我的硬盘驱动器上找不到来自我朋友的路径.

The reason for this warning is that Xcode cannot find the path from my friend on my hard drive.

所以我的问题是,与团队合作时,通常如何处理Xcode中库搜索路径"的不同绝对路径?

So my question is how to handle different absolute paths for the "Library Search Path" in Xcode in general when working with a team?

推荐答案

使用SRCROOT构建设置.例如,将以下内容添加到库搜索路径":

Use the SRCROOT build setting. For example, add the following to Library Search Paths:

$(SRCROOT)/Libraries/MyLibrary

有关Xcode构建设置的完整文档为这里.

Full docs on Xcode build settings are here.

这篇关于如何使用Xcode和Git处理不同的库搜索路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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