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.
source share