早上好,
我的应用程序在iPhone
上运行良好,但在iPad
崩溃并且无法理解问题。
Crash incident:Hardware Model: iPad3,3
Process: SardinianPirates1 [20569]
Path: /var/mobile/Applications/BD12D72A-B8BC-4443-B866-8B632211A467/nameofapp.app/nameofapp
Identifier: nameofapp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-04-11 15:41:24.829 -0700
OS Version: iPhone OS 5.1 (9B176)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/BD12D72A-B8BC-4443-B866-8B632211A467/nameofapp.app> (loaded)' with name 'MainWindow-iPad''
*** First throw call stack:
(0x31f9e88f 0x367f3259 0x31f9e789 0x31f9e7ab 0x32d9f437 0x32da094d 0x32cd6509 0x32b5f893 0x32b598d7 0x32b27c6b 0x32b2770f 0x32b270e3 0x3595322b 0x31f72523 0x31f724c5 0x31f71313 0x31ef44a5 0x31ef436d 0x32b58a13 0x32b55e7d 0xfbdef 0xfbda8)
This is my Xcode error log when launch the iPad simulator
2012-04-12 07:53:50.556 nameofapp[16337:10a03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/myname/Library/Application Support/iPhone Simulator/5.1/Applications/E8655CDA-1E4F-41CB-B3C7-9A5B7BFF13A6/nameofapp.app> (loaded)' with name 'MainWindow-iPad''
*** First throw call stack:
(0x1c1a022 0x1905cd6 0x1bc2a48 0x1bc29b9 0x5bb638 0x5bceb7 0x399ce1 0x399ff8 0x39917f 0x3a8183 0x3a8c38 0x39c634 0x2312ef5 0x1bee195 0x1b52ff2 0x1b518da 0x1b50d84 0x1b50c9b 0x398c65 0x39a626 0x25a7 0x2541 0x1)
terminate called throwing an exception(lldb)
有什么想法帮助我吗? 谢谢
答案 0 :(得分:2)
它说它希望在你的应用程序包中找到一个名为MainWindow-iPad
的文件。查看摘要, iPad部署信息下的目标设置。正如Radrider33所说,您的应用代表也可能会要求您提供此服务。
您可以通过三种不同的方式来解决此问题:
MainWindow-iPad
,或更改iPad 主界面文件以匹配您创建的任何文件。答案 1 :(得分:1)
更改项目的默认窗口设置。 并检查您的ios版本的ipad
答案 2 :(得分:0)
检查您的项目设置。您的应用程序正在尝试借用文件名为“MainWindow-iPad”的xib,但不能。确保应用程序委托中的所有内容都是正确的,以及项目的默认窗口设置。