2014-05-06 38 views
0

我有一些麻煩,審查我的應用程序的應用程序商店。這不是我的第一個應用程序,但我不能得到錯誤。iOS應用程序審查失敗 - 與iOS 7.1的iPad崩潰啓動

該應用程序適用於真實設備(iPhone 5S),沒有任何例外。我沒有iPad,但在模擬器上它可以很好地工作。

步驟: 1.應用與啓動圖像 2.應用程序啓動應該創建/打開sqlite3的數據庫並填充它從一個UITableView。正如我所說 - 在iPhone上完美工作,但在iPad上啓動屏幕後直接崩潰。 -

編輯::: 我的目標位置以下發現: 「Patientenratgeber」 「PatientenratgeberTests」 如果我建立的第一個 - 沒有錯誤 如果我建立第二個 - 錯誤 我是否需要第二個構建目標?我如何刪除它而不會導致新的問題?

爲什麼會出現這種情況的一些想法?

這是我的崩潰報告:

{"bundleID":"Patientenratgeber","app_name":"Patientenratgeber","bug_type":"109","name":"Patientenratgeber","os_version":"iPhone OS 7.1 (11D167)","version":"1.0 (1.0)"} Incident Identifier: D72511CB-A5EA-4C6A-A535-DD1FB46BC2E5 CrashReporter Key: 4f2c8fa05c83e9d455c232dbd2fa63e852283d0e Hardware Model:  xxx Process:    Patientenratgeber [1324] Path:    /var/mobile/Applications/DF803017-609F-498A-8C5C-56FB17B4F581/Patientenratgeber.app/Patientenratgeber Identifier:   Patientenratgeber Version:    1.0 (1.0) Code Type:   ARM-64 (Native) Parent Process:  launchd [1] 

Date/Time:   2014-05-01 10:53:37.785 -0700 OS Version:   iOS 7.1 (11D167) Report Version:  104 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000005 Triggered by Thread: 0 

Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libobjc.A.dylib     0x000000018ee0c0b0 objc_retain + 16 1 UIKit       0x00000001853e466c 
-[UIViewController loadViewIfRequired] + 572 2 UIKit       0x00000001853e43f0 -[UIViewController view] + 28 3 UIKit    0x0000000185465af0 -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 436 4 UIKit   0x0000000185463f48 -[UIWindow 
_setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] 
+ 1216 5 UIKit       0x0000000185463a00 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 124 6 UIKit        0x00000001853e6450 -[UIWindow 
_updateToInterfaceOrientation:duration:force:] + 400 7 UIKit       0x000000018546302c -[UIViewController 
_tryBecomeRootViewControllerInWindow:] + 188 8 UIKit       0x00000001853eb95c -[UIWindow addRootViewControllerViewIfPossible] + 508 9 UIKit       0x00000001853e8d74 -[UIWindow 
_setHidden:forced:] + 288 10 UIKit        0x000000018545b838 -[UIWindow makeKeyAndVisible] + 64 11 UIKit   0x0000000185458144 -[UIApplication 
_callInitializationDelegatesForURL:payload:suspended:] + 2136 12 UIKit        0x00000001854519e8 -[UIApplication 
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 768 13 UIKit       0x00000001853e58c8 -[UIApplication handleEvent:withNewEvent:] + 3312 14 UIKit       0x00000001853e4acc -[UIApplication sendEvent:] + 100 15 UIKit   0x0000000185451040 _UIApplicationHandleEvent + 668 16 GraphicsServices     0x0000000187fb7500 _PurpleEventCallback 
+ 672 17 GraphicsServices     0x0000000187fb702c PurpleEventCallback + 44 18 CoreFoundation     0x00000001823da88c 
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52 19 CoreFoundation     0x00000001823da7ec __CFRunLoopDoSource1 
+ 440 20 CoreFoundation     0x00000001823d8a10 __CFRunLoopRun + 1616 21 CoreFoundation     0x00000001823196cc CFRunLoopRunSpecific + 448 22 UIKit     0x00000001854501c4 -[UIApplication _run] + 780 23 UIKit    0x000000018544afd8 UIApplicationMain + 1152 24 Patientenratgeber  0x000000010005d400 main (main.m:16) 25 libdyld.dylib     0x000000018f3e7a9c start + 0 

Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib   0x000000018f4c9aa8 kevent64 + 8 1 libdispatch.dylib    0x000000018f3cd998 
_dispatch_mgr_thread + 48 

Thread 2: 0 libsystem_kernel.dylib   0x000000018f4e2e74 
__workq_kernreturn + 8 1 libsystem_pthread.dylib   0x000000018f561548 start_wqthread + 0 

Thread 3: 0 libsystem_kernel.dylib   0x000000018f4e2e74 
__workq_kernreturn + 8 1 libsystem_pthread.dylib   0x000000018f561548 start_wqthread + 0 

Thread 0 crashed with ARM Thread State (64-bit): 
    x0: 0x0000000000000005 x1: 0x0000000000000000 x2: 0x00000000ffffffff x3: 0x0000000000000001 
    x4: 0x000000018f15af34 x5: 0x0000000000000020 x6: 0x0000000000000000 x7: 0x0000000000000000 
    x8: 0x0000000000000000 x9: 0x2b00950554ab6cf2 x10: 0x000000016fda89e2 x11: 0x0000000192b24c3f x12: 0x0000000000000018 x13: 0x0000000000060000 x14: 0x0000000000000000 x15: 0x0000000000000000 x16: 0x000000018ee0d8cc x17: 0x0000000100064018 x18: 0x0000000000000000 x19: 0x000000015d510c50 x20: 0x0000000170248760 x21: 0x0000000185ab3f08 x22: 0x0000000185adb64c x23: 0x0000000185ad2516 x24: 0x0000000000000000 x25: 0x0000000178062240 x26: 0x000000019232e098 x27: 0x0000000000000001 x28: 0x0000000000000003 fp: 0x000000016fda8b70 lr: 0x000000010005d56c 
    sp: 0x000000016fda8b50 pc: 0x000000018ee0c0b0 cpsr: 0x00000000 

Binary Images: 
+0

向我們展示一些代碼?你的應用程序刪除和/或你在哪裏創建tableview等?在設備上運行時是否有崩潰消息? – CW0007007

+0

這是因爲SQLite3數據庫被關閉,另一個函數在關閉它之後試圖訪問它。小東西可以很快變大; -D – NickFlows

回答

1

試圖通過使NSZombieEnabled標誌調試代碼。 查看下面的圖片並按照步驟操作。

Select Edit Scheme

check NSZombieEnabled

+0

嗨iLearner,我現在就試試看,如果它幫了我很多消息,我會通知你的。) – NickFlows

+0

@RabidaInternetagentur你肯定 – iLearner

+0

我像你說的那樣激活了殭屍,但是在模擬器上它完美地起作用之前。只需更長的加載時間,但不會造成應用程序崩潰。 – NickFlows

0

您可以添加異常斷點。從那裏,你會得到知道在哪裏的應用程序崩潰:

下面是步驟操作:

enter image description here

+0

我已經完成了!沒有停止,沒有休息沒有......我只是不明白那個代碼有什麼問題......在模擬器上,它真的不合格。就在真正的iPad設備上。 – NickFlows

+0

我建議通過連接設備來檢查 –