将 xCode '.a' 库文件添加到存储库 SVN 被忽略
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1357911/
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
Adding xCode '.a' Library file to repository SVN ignored
提问by vdaubry
I am not able to upload the file "libYAJLIPhone.a" to a SVN repository.
我无法将文件“libYAJLIPhone.a”上传到 SVN 存储库。
I'm trying to set up an SVN repository for an iPhone application. I've set up various "global-ignores" and auto-props to exclude the build directory.
我正在尝试为 iPhone 应用程序设置一个 SVN 存储库。我已经设置了各种“全局忽略”和自动道具来排除构建目录。
But with and without these ignore parameters and/or auto-props I'm still not able add the file "libYAJLIPhone.a"?
但是无论有没有这些忽略参数和/或自动道具,我仍然无法添加文件“libYAJLIPhone.a”?
I'm using Cornerstone as a frontend. Any help would be appreciated!
我使用 Cornerstone 作为前端。任何帮助,将不胜感激!
回答by vdaubry
Actually SVN is ignoring .a files when you import a project. You have to manually add the .a files
实际上,当您导入项目时,SVN 会忽略 .a 文件。您必须手动添加 .a 文件
For example :
例如 :
svn add libOCMock.a
svn 添加 libOCMock.a
Then you can commit the library to your repo.
然后您可以将库提交到您的存储库。
Hope this helps, Vincent
希望这会有所帮助,文森特
回答by Eneko Alonso
A quick way to add them from the command line (including subfolders):
从命令行(包括子文件夹)添加它们的快速方法:
$ find . -name *.a -exec svn add {} \;
回答by Saran
Might help someone...
可能会帮助某人...
Modifying ~/.subversion/config has no effect on cornerstone. In order make Cornerstone accept .a files.
修改 ~/.subversion/config 对基石没有影响。为了使 Cornerstone 接受 .a 文件。
- Go to Cornerstone preferences.
- Choose 'Subversion' tab
- Choose 'General'
- Uncheck 'Use default global ignores', that will enable the text box for editing.
- Remove *.a from the box.
- 转到 Cornerstone 首选项。
- 选择“颠覆”选项卡
- 选择“通用”
- 取消选中“使用默认全局忽略”,这将启用文本框进行编辑。
- 从框中删除 *.a。
Above is for Cornerstone 2.0.2 on Mac.
以上是 Mac 上的 Cornerstone 2.0.2。
回答by Gagan_iOS
I followed these steps to add a .a file into svn
我按照这些步骤将 .a 文件添加到 svn
1.Go to Terminal
1.前往终端
2Type .cd ~/.subversion/
2输入 .cd ~/.subversion/
3.open -a TextEdit config
3.打开-a TextEdit配置
4.Goto section "# global-ignores" in the config file and remove "*.a"
4.转到配置文件中的“# global-ignores”部分并删除“*.a”
5.Unlock and save the file
5.解锁并保存文件
6.Navigate to the folder where the .a files are present in your PROJECT PATH
6.导航到项目路径中 .a 文件所在的文件夹
7.Type "svn add FILENAME.a"
7. 输入“svn add FILENAME.a”
Hope it will help.
希望它会有所帮助。
回答by boat365
There seems to be something strange going on with the global ignore list in Cornerstone. If you copy something like this in there (from ~/.subversion/config), then .a files will appear (*.a is in the global ignore list by default, but not in this list):
Cornerstone 中的全局忽略列表似乎发生了一些奇怪的事情。如果你在那里复制这样的东西(从 ~/.subversion/config),那么 .a 文件将出现(*.a 默认在全局忽略列表中,但不在此列表中):
*.o *.lo *.la *.al .libs *.so .so.[0-9]*.pyc *.pyo *.rej ~ ## .#* .*.swp .DS_Store
*.o *.lo *.la *.al .libs *.so .so.[0-9]*.pyc *.pyo *.rej ~ ## .#* .*.swp .DS_Store
(they may need to be comma delimited to appear correctly in Cornerstone; they're whitespace delimited in the svn config file, but it seems to actually work either way, regardless of how the dialog presents them). Then I found, if I selected to use the defaults in the Cornerstone subversion config dialog, I got another slightly different global ignore list which also didn't include *.a, and that worked, so I stuck with it.
(它们可能需要以逗号分隔才能在 Cornerstone 中正确显示;它们在 svn 配置文件中以空格分隔,但无论对话框如何显示它们,它似乎实际上都可以工作)。然后我发现,如果我选择使用 Cornerstone subversion 配置对话框中的默认值,我会得到另一个略有不同的全局忽略列表,它也不包含 *.a,并且有效,所以我坚持使用它。