【问题标题】:Xamarin.Forms iOs project FileNotFoundException on Host invalid path主机无效路径上的 Xamarin.Forms iOs 项目 FileNotFoundException
【发布时间】:2016-08-06 01:49:30
【问题描述】:

我使用 Visual Studio 2015 开发跨平台应用程序并使用主机构建 iOS 应用程序。 构建失败,出现此异常:

System.IO.FileNotFoundException: /Users/admin/Library/Caches/Xamarin/mtbs/builds/TeedlMobileiOS/44a299393b33183ffe81e6e2cebbc7ad/obj/iPhoneSimulator/Debug/Images/Calendar/datecell.png does not exist

当我在我的 Mac 上查看时,我看到这张图片名为“Images\Calendar\datecell.png”,其路径为“/Users/admin/Library/Caches/Xamarin/mtbs/builds/TeedlMobileiOS/44a299393b33183ffe81e6e2cebbc7ad/ obj/iPhoneSimulator/Debug/Images\Calendar\datecell.png"

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

请问我该如何解决?提前致谢。

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

【问题讨论】:

    标签: xamarin.ios cross-platform xamarin.forms filenotfoundexception


    【解决方案1】:
    Xamarin 项目中的

    清理 是不够的。我不得不删除 objbin 文件夹

    【讨论】:

    • 这对我不起作用。完成此操作后,下一个构建将显示如下错误:Cannot get assembly name for "obj/iPhone/Release/MyApp.exe". Could not load file or assembly 'MyApp.exe' or one of its dependencies. The system cannot find the file specified.
    猜你喜欢
    • 1970-01-01
    • 2010-09-23
    • 1970-01-01
    • 1970-01-01
    • 2019-03-17
    • 2015-04-03
    • 2019-01-08
    • 1970-01-01
    • 2015-12-17
    相关资源
    最近更新 更多