C# 更改iOS设备使iOS应用程序崩溃

C# 更改iOS设备使iOS应用程序崩溃,c#,ios,xamarin,xamarin.ios,C#,Ios,Xamarin,Xamarin.ios,我在Xamarin中构建了一个iPhone/iPod应用程序,它也可以在iPad上运行 但现在我的一位客户在从iPadAir和iPadMini中选择图片时出现了一个bug。我正在搜索修补程序,但我可以看到,我必须将设备更改为Universal 但这一变化让我们看到另一个运行时bug告诉我 Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Th

我在Xamarin中构建了一个
iPhone/iPod
应用程序,它也可以在iPad上运行
但现在我的一位客户在从iPadAir和iPadMini中选择图片时出现了一个bug。我正在搜索修补程序,但我可以看到,我必须将设备更改为
Universal

但这一变化让我们看到另一个运行时bug告诉我

Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: There doesn't seem to be a valid compiled storyboard at path '/Users/udvikling/Library/Developer/CoreSimulator/Devices/E9486AE7-8E88-417C-B2BF-D38827F85CF5/data/Containers/Bundle/Application/4BC6F0AC-DA61-4894-A521-1F7FBF013297/<project>.app/LaunchScreen.storyboardc'
Native stack trace:
   0   CoreFoundation                      0x000000010a926d85 __exceptionPreprocess + 165
   1   libobjc.A.dylib                     0x000000010addbdeb objc_exception_throw + 48
   2   UIKit                               0x0000000102419d3d -[UIStoryboard name] + 0
   3   UIKit                               0x0000000101cd787b -[UIApplication _loadMainStoryboardFileNamed:bundle:] + 58
   4   UIKit                               0x0000000101cd7bcf -[UIApplication _loadMainInterfaceFile] + 260
   5   UIKit                               0x0000000101cd63ef -[UIApplication _runWithMainScene:transitionContext:completion:] + 1392
   6   UIKit                               0x0000000101cd3714 -[UIApplication workspaceDidEndTransaction:] + 188
   7   FrontBoardServices                  0x00000001100e88c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
   8   FrontBoardServices                  0x00000001100e8741 -[FBSSerialQueue _performNext] + 178
   9   FrontBoardServices                  0x00000001100e8aca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
   10  CoreFoundation                      0x000000010a84c301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
   11  CoreFoundation                      0x000000010a84222c __CFRunLoopDoSources0 + 556
   12  CoreFoundation                      0x000000010a8416e3 __CFRunLoopRun + 867
   13  CoreFoundation                      0x000000010a8410f8 CFRunLoopRunSpecific + 488
   14  UIKit                               0x0000000101cd2f21 -[UIApplication _run] + 402
   15  UIKit                               0x0000000101cd7f09 UIApplicationMain + 171
   16  ???                                 0x000000011c4c962c 0x0 + 4769748524
   17  ???                                 0x000000011c4c929d 0x0 + 4769747613
Foundation.MonoTouchException:引发Objective-C异常。名称:NSInvalidArgumentException原因:路径“/Users/udvikling/Library/Developer/CoreSimulator/Devices/E9486AE7-8E88-417C-B2BF-D38827F85CF5/data/Containers/Bundle/Application/4BC6F0AC-DA61-4894-A521-1FB7F013297/.app/LaunchScreen.storyboard”中似乎没有有效的已编译故事板
本机堆栈跟踪:
0 CoreFoundation 0x000000010a926d85例外预处理+165
1 libobjc.A.dylib 0x000000010addbdeb objc_异常_抛出+48
2 UIKit 0x0000000102419d3d-[UIStoryboard名称]+0
3 UIKit 0x0000000101cd787b-[UIApplication\u LoadMainstryBoardFileName:bundle:][58
4 UIKit 0x0000000101cd7bcf-[UIApplication\u LoadMain接口文件]+260
5 UIKit 0x0000000101cd63ef-[UIApplication\u在主场景中运行:transitionContext:completion:+1392
6 UIKit 0x0000000101cd3714-[UIApplication WorkspaceDiEndTransaction:][188
7 FrontBoardServices 0x00000001100e88c8\uu FBSSERIALQUEUE\u正在调用\u OUT\u到\u块\uuu+24
8 FrontBoardServices 0x00000001100e8741-[FBSSerialQueue\u performNext]+178
9 FrontBoardServices 0x00000001100e8aca-[FBSSerialQueue\u performNextFromRunLoopSource]+45
10 CoreFoundation 0x000000010a84c301\uuuu CFRUNLOOP\u正在调用\u OUT\u以执行\u函数\uuu+17
11 CoreFoundation 0x000000010a84222c\uuu CFRunLoopDoSources0+556
12 CoreFoundation 0x000000010a8416e3\uuU CFRunLoopRun+867
13 CoreFoundation 0x000000010a8410f8 CFRunLoopRunSpecific+488
14 UIKit 0x0000000101cd2f21-[UIApplication_run]+402
15 UIKit 0x0000000101cd7f09 UIApplicationMain+171
16  ???                                 0x000000011c4c962c 0x0+4769748524
17  ???                                 0x000000011c4c929d 0x0+4769747613
我尝试将
主界面
更改为iPhone的设置,但没有成功。

那么我能做什么呢?

在您的
部署信息下

您的设备应设置为
universal

您的
主界面
应设置为
main
而不是
launchscreen

应用程序图标和启动屏幕图像下

launchscreen文件
应设置为
launchscreen
,而不是
main


并确保您的项目中有两个具有各自名称的情节提要。

我只有空的和
启动屏幕。情节提要可供选择。或者我必须在Xamarin Studio而不是Visual Studio中打开?我没有
应用程序图标和启动屏幕图像
部分,但是
通用图标
部分。