Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/58.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin表单:Ios项目未启动_Ios_Xamarin.ios_Xamarin.forms_Portable Class Library - Fatal编程技术网

Xamarin表单:Ios项目未启动

Xamarin表单:Ios项目未启动,ios,xamarin.ios,xamarin.forms,portable-class-library,Ios,Xamarin.ios,Xamarin.forms,Portable Class Library,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

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);
        }
    }

对我来说,这个错误被证明是与的有关,我的物理设备不再信任它。在我从手机中删除应用程序后,它立即停止信任它。在再次调试应用程序后,我开始看到错误,该应用程序在我的手机上重新安装,但未能启动

要告诉您的设备再次信任该配置文件,请导航到
设置
->
常规
->
设备管理
。在开发者应用程序部分,选择您的配置文件,然后再次信任它

信任应用程序后,在该屏幕中,您将看到:

开发者“iPhone开发者:myProfileName”的应用程序在此iPhone上受信任,并且在删除开发者的所有应用程序之前将一直受信任

因此,如果你曾经从物理设备上删除你的应用程序,你可能会再次遇到这种情况


关于我是如何得出这一结论的,我想再补充一点细节。

你是否进行了重建和清理,以及所有的事情?你是否更新了你的设备?@Gerald Versluis是的times@Taier不,它是在ios 9.1上运行的确保你有Xamarin的更新,Xcode从所有项目文件夹中删除所有
bin
obj
文件夹并重新生成。