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 to remove references. How can i do that?
To show hidden files in the Finder, hold down the Command and Shift keys and press the period (.) key. If you navigate to your project folder, you should see the git ignore file. Press Cmd-Shift-Period to go back to hiding the invisible files. After creating the git ignore file, add it to your repository. In Xcode choose Source Control > Commit.
If you know which files you want to exclude ahead of time, and the exclusion applies to all destination environments, you can simply set the Build Action of each file to None. To exclude specific files from deployment. In the Solution Explorer window, right-click the file, and then click Properties.
Excluding Specific Files and Folders 1 In the Solution Explorer window, right-click the file, and then click Properties. 2 In the Properties window, in the Build Action row, select None. More ...
Use the exclude option in your tsconfig.json file to exclude a folder from compilation in TypeScript. The exclude option changes what the include setting finds and defaults to node_modules and bower_components. The example above uses the include option to specify a pattern to include in the codebase.
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
.<Path>/FolderToIgnore/*
. The asterisk denotes all the file in the folder.That should do it.
Note: Make sure you add this to the right target.
Build Settings> Build Options> Excluded Source File Names
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With