简体   繁体   English

导入库的xcode构建设置(xcode 5)

[英]xcode build settings for imported libraries (xcode 5)

I'm having a small issue with xcode (I'm assuming it's mostly due to being unfamiliar with xcode itself) and was hoping someone could lend me a hand. 我在xcode上遇到了一个小问题(我认为这主要是由于对xcode本身不熟悉),并希望有人可以帮我一下。

I'm working with a group of people and we're using the GPUimage framework. 我正在与一群人一起工作,我们正在使用GPUimage框架。

The problem is this: For every person referencing GPUimage we get additional entries in the build settings for the xcode project. 问题是这样的:对于每个引用GPUimage的人,我们都会在xcode项目的构建设置中获得其他条目。

For example build products path would be: 例如,构建产品路径为:

 /Users/username/project/application_name/GPUImage-master/GPUimage.framework

I would rather it be: 我希望是:

 /application_name/GPUImage-master/GPUimage.framework

The reason I want to fix this is because we need to package up our application and library together so that whoever wants to use it only needs to open the xcode project file to see what we've done (to mark it, school project). 我要解决此问题的原因是,我们需要将应用程序和库打包在一起,以便任何人只要使用它,只需打开xcode项目文件即可查看我们所做的事情(将其标记为school项目)。

Can anyone suggest what I should do or look for here? 谁能建议我该做什么或在这里寻找?

Try adding the following to the beginning of the user path: 尝试将以下内容添加到用户路径的开头:

$(SRCROOT)/application_name/GPUImage-master/GPUimage.framework

That should instruct XCode to use the user path of whoever is using the library 那应该指示XCode使用正在使用库的人的用户路径

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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