gpt4 book ai didi

ios - 如何将 MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure 设置为 false?

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:59:40 25 4
gpt4 key购买 nike

我正在使用 Xamarin 并尝试在 iOS 模拟器中运行我的应用程序之一,但出现此错误:

2015-10-07 12:38:02.715 MolinaCoding1iOS[1550:54337] Unhandled managed exception:
Could not initialize an instance of the type 'UIKit.UIImage': the native 'initWithContentsOfFile:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false. (System.Exception)

我如何真正忽略这种情况?如果我不应该忽略这个……那我该怎么办?

谢谢

最佳答案

我通过在我的项目上运行“清理”(使用 Visual Studio)解决了这个问题。右键单击您的项目并选择“清理”。之后运行应用程序。

关于ios - 如何将 MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure 设置为 false?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32999376/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com