In Xcode, how to exclude a file with a set name from an application pool

When I run the Xcode project, I drag and drop the empty readme.txt file that I use for notes while I am parsing. The fact is that the file is added to the application bundle during assembly. Then I have to cancel it in the Details view so that this does not happen.

Is there a way to automatically exclude a file with a known name from each assembly?

I know that Xcode is automatic, but I do not know where to look.

Use the latest non-beta version of Xcode.

+4
source share
1 answer

In the project plan view (by default, this is the left-hand panel when you open Xcode), find the application in the "Goals" section. Expand the subheadings, one of which is Copy Package Resources. You will probably find that your unwanted text file was automatically placed here. Select the file here and delete it - this will leave the file in your project, but will not allow Xcode to copy it to your application package when building. To finish, select β€œClean and Build” from the Xcode build menu to completely clear your old package and recreate it with the new setup.

+4
source

Source: https://habr.com/ru/post/1301411/


All Articles