什么是目标依赖? [英] What is a target dependency?

查看:39
本文介绍了什么是目标依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得问这个问题很菜鸟,但什么是目标依赖?我一直在 Xcode 中看到它.

I feel so noob asking this question, but what is a target dependency? I see it all the time in Xcode.

推荐答案

依赖项是另一个必须在构建当前目标之前构建的目标.例如,如果您有一个 app 目标和一个框架目标,则 app 目标可以将框架目标作为依赖项,以确保首先构建框架.也就是说,应用目标取决于"框架.

A dependency is another target that must be built before the current target can be. For example, if you have an app target and a framework target, the app target can have the framework target as a dependency, to ensure that the framework is built first. That is, the app target "depends" on the framework.

这篇关于什么是目标依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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