我们最近升级了本地Windows服务器,将我们的Xamarin解决方案升级到最新的VS2017。在它还在使用VS2015之前。从那时起,大约30%的构建随机失败,错误如下:
C:\Program Files (x86)\Microsoft Visual
Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5):
warning : Failed to execute 'which mono64': ExitStatus = 1 C:\Program
Files (x86)\Microsoft Visual
Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5):
error : The Build Agent 'Build 4.8.0.753' is not running on the Mac.
Please ensure that the assembly versions between the XMA Agents and
the XMA clients matches. A compatible Build Agent is needed in order
to finish the build.
在Mac构建日志上,我们得到了以下内容:
Xamarin.Messaging.Build.BuildAgent: Information: 0: Stopping Agent:
Build: 2018-01-09 10:12:44Z System.Net.Mqtt.Sdk.MqttClientImpl: Error:
0: No session has been found for the client at
System.Net.Mqtt.Sdk.MqttClientImpl.CloseClientSession () [0x00098] in
<65aadb65fa...> at System.Net.Mqtt.Sdk.MqttClientImpl+d__34.MoveNext
() [0x00035] in <65aadb65fa...> System.Net.Mqtt.Sdk.MqttClientImpl:
Information: 0: Client - Disposing. Reason: Error:
Xamarin.iOS.Windows.After.targets
第63行运行的是SayHello MSBuild任务,所以看起来这是一个随机失败的任务,甚至连连接到Mac的连接都还在运行。
我们在Windows机器和machine :Windows上使用的版本:
麦克:
有什么想法吗?
我们怎样才能使它更稳定?
发布于 2018-05-16 07:10:04
我们已经看到了类似的行为(并且正在运行几乎相同的设置)。我不确定这是否相关,但通常情况下,我们会登录到有关的mac,然后会看到有一个对话框出现,请求提供凭据;具体如下:
codesign希望访问您的密钥链中的密钥" access“。
我们已经输入了登录密码,并说“始终允许”之后,做了几次(我们有很多iOS项目),我们的构建最终通过,并“稳定”。然而,这个周期似乎在我们必须重新分配我们的iOS开发人员密钥时重置。
再一次,因为这个问题是如此随机,很难说它是否相关,但它确实看起来是这样的。
https://stackoverflow.com/questions/48221905
复制相似问题