Xamarin.ios 主机无效路径上的Xamarin.Forms iOs项目FileNotFoundException

Xamarin.ios 主机无效路径上的Xamarin.Forms iOs项目FileNotFoundException,xamarin.ios,cross-platform,xamarin.forms,filenotfoundexception,Xamarin.ios,Cross Platform,Xamarin.forms,Filenotfoundexception,我使用Visual Studio 2015开发了一个跨平台应用程序,并使用主机构建了iOS应用程序。 生成失败,出现以下异常: System.IO.FileNotFoundException:/Users/admin/Library/Caches/Xamarin/mtbs/builds/TeedlMobileiOS/44a299393b33183ffe81e6e2cebbc7ad/obj/iPhoneSimulator/Debug/Images/Calendar/datecell.png不存在

我使用Visual Studio 2015开发了一个跨平台应用程序,并使用主机构建了iOS应用程序。 生成失败,出现以下异常:

System.IO.FileNotFoundException:/Users/admin/Library/Caches/Xamarin/mtbs/builds/TeedlMobileiOS/44a299393b33183ffe81e6e2cebbc7ad/obj/iPhoneSimulator/Debug/Images/Calendar/datecell.png不存在

当我在mac上查看时,我看到这个图像被称为“Images\Calendar\datecell.png”,它的路径是“/Users/admin/Library/Caches/Xamarin/mtbs/builds/TeedlMobileiOS/44A299393B33183FFE681E6E2CEBBC7AD/obj/iPhoneSimulator/Debug/Images\Calendar\datecell.png”

路径设置不正确,对于日历、复选框和Radiobutton文件夹的所有图像都是相同的问题。我试图手动设置正确的路径,但它被构建操作覆盖

我怎样才能修好它?提前谢谢


我使用的是Xamarin.Forms v2.2.0.5-pre2,但不是Toasts.Forms.Plugin(我在谷歌上搜索时发现,同样的问题也可能发生)

在Xamarin项目中清洁是不够的。我不得不删除objbin文件夹


在Xamarin项目中,清洁是不够的。我不得不删除objbin文件夹


这对我不起作用。执行此操作后,下一个生成将显示如下错误:
无法获取“obj/iPhone/Release/MyApp.exe”的程序集名称。无法加载文件或程序集“MyApp.exe”或其依赖项之一。系统找不到指定的文件。
这对我不起作用。执行此操作后,下一个生成将显示如下错误:
无法获取“obj/iPhone/Release/MyApp.exe”的程序集名称。无法加载文件或程序集“MyApp.exe”或其依赖项之一。系统找不到指定的文件。