Xcode目标,项目和测试? [英] Xcode Targets, projects and tests?

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

问题描述

目标均值的设置究竟做了什么?以及它与项目和/或测试设置有什么不同(这使项目成为仅构建状态).我怀疑这三者之间是否清楚,我需要了解所有这三者的永久范围.

what does exactly the settings for target mean. and how does it differ from project and/or test settings (which makes the project a build-only state). My doubt is the clarity among all three of these and i need to understand a perpetual scope of all of them.

谢谢,.

推荐答案

应用程序具有单个构建/测试设置,但可以具有多个目标.

An application have a single build/test settings but it can have multiple targets.

假设您正在创建一个应用程序.现在,您只需要更改UI主题就可以接收相同的应用程序.在这种情况下,无需创建另一个项目,但是您可以在同一项目中创建另一个目标.同样,一个项目可以有多个目标,这些目标可以产生框架,静态库等.

Suppose you are creating an application. Now you are receiving same application with just UI theme changes. In that case no need to create another project but you can create another target in same project. In the same way a project can have multiple targets which produce framework, static library etc.

因此,无论您需要进行的目标特定设置是什么,都将在目标设置下进行.通用设置将成为构建设置的一部分.如果您同时在这两个设置中输入值,则目标设置将具有最高优先级.

So, whatever target specific settings you need to make will be made under target settings. Common settings will be part of build settings. If you are putting values in both settings, target settings will get highest priority.

希望这会有所帮助.

这篇关于Xcode目标,项目和测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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