xcode Subversion (SVN) 和静态库(.a 文件)兼容性?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3724817/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:45:04  来源:igfitidea点击:

Subversion (SVN) and static libraries (.a files) compatibility?

iphonesvnxcodeioscommit

提问by Francescu

I can't add .a files (static libraries) into my repository. Why?

我无法将 .a 文件(静态库)添加到我的存储库中。为什么?

Is there a way to "force" SVN to accept them (at least as static files...)?

有没有办法“强制”SVN接受它们(至少作为静态文件......)?

回答by pyfunc

The svn:ignoreproperty contains a list of file patterns which certain Subversion operations will ignore.

svn:ignore属性包含某些 Subversion 操作将忽略的文件模式列表。

Also do you have a configuration file that global-ignores. It is a list of whitespace-delimited globs which describe the names of files and directories

你也有一个全局忽略的配置文件。它是一个以空格分隔的 glob 列表,用于描述文件和目录的名称

The svn status, svn add, and svn importcommands also ignore files that match the list.

svn statussvn addsvn import命令也忽略匹配列表中的文件。

To override for a certain instance, use the --no-ignorecommand-line flag:

要覆盖某个实例,请使用--no-ignore命令行标志:

>>>>svn help add
usage: add PATH...

Valid options:
  --targets ARG            : pass contents of file ARG as additional args
  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates
  --depth ARG              : limit operation by depth ARG ('empty', 'files',
                            'immediates', or 'infinity')
  -q [--quiet]             : print nothing, or only summary information
  --force                  : force operation to run
  --no-ignore              : disregard default and svn:ignore property ignores
  --auto-props             : enable automatic properties
  --no-auto-props          : disable automatic properties

回答by zellus

Make sure your issue is caused by the SVN ignore configuration. With `svn status'your '*.a' file will be missing, while 'svn status --no-ignore'shall display it with a question mark in front.

确保您的问题是由 SVN 忽略配置引起的。使用`svn status' 时,你的 '*.a' 文件将丢失,而'svn status --no-ignore'会在前面显示一个问号。

Open the Subversion configuration file in your home directory:

在您的主目录中打开 Subversion 配置文件:

~/.subversion/config

Search for the 'global-ignores' section:

搜索“全局忽略”部分:

global-ignores = *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store

Remove *.afrom the list of ignored files.

从忽略文件列表中删除*.a