Xcode how to exclude FOLDERS from compilation?

前端 未结 4 1668
走了就别回头了
走了就别回头了 2021-02-19 11:30

I saw this and answers in stackO, but didn\'t find how to exclude folders.

I have 3 folders with a lot of .h , .m and .mm and i need to exclude them temporary, but not

4条回答
  •  广开言路
    2021-02-19 12:25

    From looking at the post you link to. Here is how you do it:

    1. Go to Build Settings.

    2. Press the plus button and select "Add User-Defined settings"

    1. Give the new field the name of EXCLUDED_SOURCE_FILE_NAMES.

    1. Add the path to the folder: /FolderToIgnore/*. The asterisk denotes all the file in the folder.

    That should do it.

    Note: Make sure you add this to the right target.

提交回复
热议问题