【发布时间】:2017-05-09 11:02:55
【问题描述】:
wsHi 我正在使用 xamarin 表单开发应用程序。我的 ios 项目运行良好,但几天前它已停止启动它。
这是在说——
Error: error MT1007: Failed to launch the application '/Users/user/Library/Caches/Xamarin/mtbs/builds/project.iOS/58c9dca0bc9f1c5ed37d1e8652672fb2/bin/iPhone/Debug/project.iOS.app' on the device 'My iPad': Object reference not set to an instance of an object. You can still launch the application manually by tapping on it.
谁能告诉我为什么会这样???
我已尝试运行我的所有旧备份。但同样的问题来了。
这是我的 AppDelegate.cs
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// This method is invoked when the application has loaded and is ready to run. In this
// method you should instantiate the window, load the UI into it and then make the window
// visible.
//
// You have 17 seconds to return from this method, or iOS will terminate your application.
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
global::Xamarin.Forms.Forms.Init();
ImageCircleRenderer.Init();
MR.Gestures.iOS.Settings.LicenseKey = "XXXXXXXXXXXX";
LoadApplication(new App());
return base.FinishedLaunching(app, options);
}
}
【问题讨论】:
-
您是否进行了重建和清理工作?
-
你更新你的设备了吗?
-
@Gerald Versluis 是几次
-
@Taier 没有,它已经在 ios 9.1 上运行
-
确保您有更新 Xamarin,Xcode 从所有项目文件夹中删除所有
bin和obj文件夹并重建。
标签: ios xamarin.ios xamarin.forms portable-class-library