Build MessagingRemoteException、DirectoryNotFoundException 上的 Xamarin.iOS 错误 [英] Xamarin.iOS Error on Build MessagingRemoteException, DirectoryNotFoundException

查看:23
本文介绍了Build MessagingRemoteException、DirectoryNotFoundException 上的 Xamarin.iOS 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建应用程序时遇到了这个错误.我无法成功构建.(Xamarin on Visual Studio Enterprise 2015,Xamarin Mac Agent 已经连接)

I encountered this error upon building the app. I could not build successfully. (Xamarin on Visual Studio Enterprise 2015, Xamarin Mac Agent is already connected)

1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1025,3): error : MessagingRemoteException: 客户端 Build42211 在执行主题 xvs 的回复时发生错误/Build/4.2.2.11/execute-task/CompanyName.iOS/83ecc20%2FACTool

1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1025,3): error : MessagingRemoteException: An error occured on client Build42211 while executing a reply for topic xvs/Build/4.2.2.11/execute-task/CompanyName.iOS/83ecc20%2FACTool

1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1025,3):错误:DirectoryNotFoundException:找不到路径的一部分/Users/glennrodriguez/Library/Caches/Xamarin/mtbs/builds/CompanyName.iOS/83ecc20ddd53d18137bcee59a20ad010/Resources/Images.xcassets/AppIcons.appiconset/Contents.json".

1>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(1025,3): error : DirectoryNotFoundException: Could not find a part of the path "/Users/glennrodriguez/Library/Caches/Xamarin/mtbs/builds/CompanyName.iOS/83ecc20ddd53d18137bcee59a20ad010/Resources/Images.xcassets/AppIcons.appiconset/Contents.json".

推荐答案

除了 jgoldberger 所说的,您还可以尝试以下链接:https://xamarin.github.io/bugzilla-archives/45/45083/bug.html 评论 8 和 9 非常很有帮助.

In addition to what jgoldberger is saying, you can try the following found at this link: https://xamarin.github.io/bugzilla-archives/45/45083/bug.html comments 8 and 9 were very helpful.

对我来说,我正在研究的解决方案是在 TFS 中合并或分支的.发生这种情况时,它会为 Media.xcassets 中的 AppIcon 创建一个 ItemGroup.这会传播您所看到的错误.过去我使用过 jgoldberger 的解决方案,对我来说效果很好.但就在昨天,删除构建机器上的构建文件夹不起作用.以下步骤帮助我重新开始工作.

For me, the solution I am working on had been Merged or Branched in TFS. When this occurs it creates an ItemGroup for the AppIcons in your Media.xcassets. This propagates the erros you are seeing. In the past I have used jgoldberger's solution and it worked fine for me. But just yesterday deleting the builds folder on the build machine did not work. The following steps helped get me up and running again.

右键单击您的 iOS 项目并卸载您的 iOS 项目.右键单击并编辑您的 iOS 项目.找到下面的 ItemGroup 并删除整个 ItemGroup.

Right-click on your iOS project and unload your iOS project. Right-click and edit your iOS project. Find the ItemGroup below and remove the entire ItemGroup.

<ItemGroup>
    <ImageAsset Include="Media.xcassets\AppIcons.appiconset\AppIcon.png">
      <Visible>false</Visible>
    </ImageAsset>
    <ImageAsset Include="Media.xcassets\AppIcons.appiconset\Contents.json">
      <Visible>false</Visible>
    </ImageAsset>
    <ImageAsset Include="Media.xcassets\AppIcons.appiconset\mylogoicon.png">
      <Visible>false</Visible>
    </ImageAsset>
    <ImageAsset Include="Media\AppIcons.appiconset\Contents.json">
      <Visible>false</Visible>
    </ImageAsset>
    <ImageAsset Include="Media\LaunchImages\Contents.json">
      <Visible>false</Visible>
    </ImageAsset>
  </ItemGroup>

执行干净的解决方案,按照 jgoldberger 建议在您的 ~/Library/Caches/Xamarin/mtbs 中删除构建,然后重建.

Perform a clean solution, remove the builds as jgoldberger suggest in your ~/Library/Caches/Xamarin/mtbs , and rebuild after that.

这篇关于Build MessagingRemoteException、DirectoryNotFoundException 上的 Xamarin.iOS 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆