Xcode:有一个位置/标志,以防止Class编译? [英] Xcode: Is there a location/flag to prevent a Class from compiling?

查看:149
本文介绍了Xcode:有一个位置/标志,以防止Class编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode中有一个地方(或标志)的文件,你不想编译?有一些类是/可能成为一个项目的一部分,但目前不会编译。主项目没有链接到他们,但Xcode仍然尝试编译它们。有没有办法阻止其他项目的编译,直到这些新的类准备好?

Is there a place (or flag) in Xcode for files that you don't want to compile? There are some classes that are/may become part of a project but currently won't compile. The main project doesn't link to them but Xcode still tries to compile them. Is there a way to prevent blocking the rest of project from compiling until these new Classes are "ready"?

推荐答案

请注意,对于每个源文件,您可以指定它属于哪个目标 - 查看检查器窗口文件(获取信息),然后单击目标选项卡。如果取消选择给定源文件的目标,那么它不会被编译为该目标的构建过程的一部分。

Note that for every source file you can specify which target(s) it belongs to - look at the inspector window for a file (Get Info) and then hit the Targets tab. If you deselect a target for a given source file then it won't be compiled as part of the build process for that target.

[这是相同的事情正如Eimantas在他的回答中所说的 - 这只是一种不同的方式来看待它。]

[This amounts to much the same thing as what Eimantas has said in his answer - it's just a different way of looking at it.]

这篇关于Xcode:有一个位置/标志,以防止Class编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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