Mac 在 Xamarin Studio 中使用 SVN
Using SVN in Xamarin Studio on Mac
我想在 macOS Sierra 上的 Xamarin Studio 中为我的新项目使用 SVN,但是当我想要 select 一个存储库时,我得到的只是 Git。我认为 Xamarin Studio 开箱即用地支持 Git 和 SVN。我需要安装什么吗?
如果使用的是最新版本的 Xamarin Studio(版本 6.2 build 1821),则会出现问题,具体取决于 Mac 上安装的 Subversion/svn。
帮助/打开日志目录
查找最近的Ide.XXXXX.log
(即Ide.2017-03-01__06-09-02.log
)
查看日志以查找对 Subversion
的引用,您可能会发现以下警告:
警告 [2017-03-01 06:09:39Z]:Subversion 插件无法加载 libsvn_client,因此将被禁用。
如果是这样,请在 https://bugzilla.xamarin.com 上提交错误并使用 svn
从 cmd 行或第 3 方 SVN GUI 客户端...
注意:我知道安装 svn v1.9.5_1 会导致最新的 Xamarin Studio 和 Visual Studio for Mac 版本在 上出错任何 solution/project加载(即使他们不使用SVN)并要求禁用SubVersion AddIn(通过Add-in Manager
(或Visual Studio上的Extensions
Mac).
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) MonoDevelop.VersionControl.Subversion.Unix.LibApr0.apr_pool_create_ex (intptr&,intptr,intptr,intptr) [0x0000c] in <ec614fb9e74e466baa337de36616d378>:0
at MonoDevelop.VersionControl.Subversion.Unix.LibApr0.pool_create_ex (intptr&,intptr,intptr,intptr) [0x00000] in /Users/builder/data/lanes/4010/d41b6e51/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/LibApr.cs:104
我找到了解决方法。来自 here
ln -s "/Applications/Xcode.app/Contents/Developer/" "/var/db/xcode_select_link"
Xcode 8.3.2 和 Xamarin 6.3 Build 863
因为 Xamarin 6.3 是最终的 "real" Xamarin 版本(参见 here), I assume MS removed the svn capability in order to direct people to Visual Studio for Mac which is the successor of Xamarin: link。VS for Mac 支持 Subversion。
我只安装了 XCode 而没有安装 Xcode 命令行工具时遇到了这个问题。
Subversion 在我安装后出现在版本控制类型下拉列表中。
xcode-select --install
我想在 macOS Sierra 上的 Xamarin Studio 中为我的新项目使用 SVN,但是当我想要 select 一个存储库时,我得到的只是 Git。我认为 Xamarin Studio 开箱即用地支持 Git 和 SVN。我需要安装什么吗?
如果使用的是最新版本的 Xamarin Studio(版本 6.2 build 1821),则会出现问题,具体取决于 Mac 上安装的 Subversion/svn。
帮助/打开日志目录
查找最近的
Ide.XXXXX.log
(即Ide.2017-03-01__06-09-02.log
)查看日志以查找对
Subversion
的引用,您可能会发现以下警告:警告 [2017-03-01 06:09:39Z]:Subversion 插件无法加载 libsvn_client,因此将被禁用。
如果是这样,请在 https://bugzilla.xamarin.com 上提交错误并使用 svn
从 cmd 行或第 3 方 SVN GUI 客户端...
注意:我知道安装 svn v1.9.5_1 会导致最新的 Xamarin Studio 和 Visual Studio for Mac 版本在 上出错任何 solution/project加载(即使他们不使用SVN)并要求禁用SubVersion AddIn(通过Add-in Manager
(或Visual Studio上的Extensions
Mac).
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) MonoDevelop.VersionControl.Subversion.Unix.LibApr0.apr_pool_create_ex (intptr&,intptr,intptr,intptr) [0x0000c] in <ec614fb9e74e466baa337de36616d378>:0
at MonoDevelop.VersionControl.Subversion.Unix.LibApr0.pool_create_ex (intptr&,intptr,intptr,intptr) [0x00000] in /Users/builder/data/lanes/4010/d41b6e51/source/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Subversion.Unix/MonoDevelop.VersionControl.Subversion.Unix/LibApr.cs:104
我找到了解决方法。来自 here
ln -s "/Applications/Xcode.app/Contents/Developer/" "/var/db/xcode_select_link"
Xcode 8.3.2 和 Xamarin 6.3 Build 863
因为 Xamarin 6.3 是最终的 "real" Xamarin 版本(参见 here), I assume MS removed the svn capability in order to direct people to Visual Studio for Mac which is the successor of Xamarin: link。VS for Mac 支持 Subversion。
我只安装了 XCode 而没有安装 Xcode 命令行工具时遇到了这个问题。
Subversion 在我安装后出现在版本控制类型下拉列表中。
xcode-select --install