Exclude file / directory from SVN in Xcode using SCM

I would like to exclude the directory from my SVN (I use Xcode built into SCM). This is not verified, but I'm just tired of not choosing it from the scan.

Most of my SVN experience runs on Windows with TortoiseSVN, which has the Ignore feature; I assume SCM has the same option.

+4
source share
2 answers

As mentioned in this SO question (with answers to Xcode SVN integration), you can still go with the "command line".

See How to ignore a directory with SVN?

svn propset svn:ignore dirname . 

You can see in this blog post by Paul Solt an example of a new project managed by Xcode, but with the SVN ignore command

Make a project in Xcode , and then use the terminal and execute the commands. If you are familiar with SVN , check the documentation.

 cd LOCAL_PROJECT_PATH svn mkdir SVN_REPOSITORY_LOCATION/PROJECT_NAME svn co SVN_REPOSITORY_LOCATION/PROJECT_NAME . svn add * svn revert --recursive build svn ps svn:ignore build . svn ci 

Teams:

  • Create a folder in your SVN repository.
  • Then it checks the remote repository folder in the local project folder and adds all the project files.
  • After adding the files, you will want to remove the assembly directory and ignore it from your SVN repository.
  • Finally, itll commit the changes and your project is in the repository.
+5
source

VocC for money, but don’t we also want to ignore pbxuser files and mode1v3 files?

I would modify svn ps svn: ignore build. step for this:

 svn propset svn:ignore "*.mode1v3 *.pbxuser bin" . 
0
source

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


All Articles