Mobile Center是Xamarin Build失败,出现pthread_mutex_lock错误

时间:2017-08-21 08:01:51

标签: xamarin.android fody fody-propertychanged mobile-center visual-studio-app-center

我正在使用Visual Studio App Center将Xamarin.Forms应用程序构建到Xamarin.Android中。该应用程序在我的机器上开发和发布配置很好,但是当我尝试在Mobile Center上构建时,构建几乎完成(即MSBuild阶段),但后来我得到了这个致命的错误:

mono_os_mutex_lock: pthread_mutex_lock failed with "Invalid argument" (22) ##[error]Error: /Library/Frameworks/Mono.framework/Versions/5/bin/msbuild failed with return code: null

1 个答案:

答案 0 :(得分:3)

啊,Nuget的问题!

我使用Fody和PropertyChanged.Fody来实现我的IOnPropertyChanged接口和事件。

我明确引用了PropertyChanged.Fody的版本2.0.1和Fody的2.1.2。我在构建日志中的非致命消息中看到了对netstandard的引用。移动中心不支持NetStandard(尚未)

所以,我将Fody更新到最新的稳定版本2.1.4,,而PropertyChanged.Fody保持相同的版本。现在构建完成了,呜!