更改iOS设备会导致iOS应用崩溃

时间:2016-09-13 08:25:56

标签: c# ios xamarin xamarin.ios

我在Xamarin中构建了一个iPhone/iPod应用程序,它也可以在iPad上运行。
但是现在我从我的一个客户那里得到了一个错误,当我从iPad Air和iPad Mini中选择图片时就会出现这个错误。我正在搜索修补程序,但我可以看到,我必须将设备更改为Universal

但是这个改变让另一个运行时错误告诉我

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

我尝试将Main interface更改为为iPhone设置的内容,但没有成功 那我该怎么办?

1 个答案:

答案 0 :(得分:1)

deployment info

您的设备应设置为universal

您的main interface应设置为main而不是launchscreen

并在app icons and launchscreen images下,

launchscreen file应设置为launch screen,而不是main

并确保您的项目中的两个故事板都具有相应的名称。