Xcode如何从编译中排除文件夹? [英] Xcode how to exclude FOLDERS from compilation?
本文介绍了Xcode如何从编译中排除文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到了这并在stackO中回答,但没有找到如何排除文件夹.
I saw this and answers in stackO, but didn't find how to exclude folders.
我有3个文件夹,其中有很多.h,.m和.mm,我需要暂时将其排除,但不要删除引用.我该怎么办?
I have 3 folders with a lot of .h , .m and .mm and i need to exclude them temporary, but not to remove references. How can i do that?
推荐答案
通过查看链接到的帖子.这是您的操作方式:
From looking at the post you link to. Here is how you do it:
-
转到构建设置".
Go to Build Settings.
按加号按钮,然后选择添加用户定义的设置"
Press the plus button and select "Add User-Defined settings"
- 为新字段提供
EXCLUDED_SOURCE_FILE_NAMES
的名称.
- Give the new field the name of
EXCLUDED_SOURCE_FILE_NAMES
.
- 将路径添加到文件夹:
<Path>/FolderToIgnore/*
.星号表示文件夹中的文件 all .
- Add the path to the folder:
<Path>/FolderToIgnore/*
. The asterisk denotes all the file in the folder.
应该这样做.
注意:请确保将其添加到正确的目标.
Note: Make sure you add this to the right target.
这篇关于Xcode如何从编译中排除文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文