簡體   English   中英

iOS應用可以運行一個很好的模擬器,但不能在設備上運行

[英]iOS app runs fine one simulator but not on device

因此,如果我在設備上運行應用程序,我將在目標輸出中得到此錯誤。 但是,它在模擬器上運行良好。

2013-05-30 12:02:43.983 SBrand[2887:907] viewDidAppear:<UIView: 0x1d5b5e20; frame = (0 0; 320 333); autoresize = TM+BM; layer = <CALayer: 0x1d5b5e80>>
2013-05-30 12:02:43.992 SBrand[2887:907] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(0x311812a3 0x38e1b97f 0x310ccb75 0x6e853 0x6d80d 0x6a86b 0x32ff0311 0x3300cf27 0x3300ceaf 0x32f92a33 0x311566cd 0x311549c1 0x31154d17 0x310c7ebd 0x310c7d49 0x34c892eb 0x32fdd301 0x69e83 0x69dd0)
libc++abi.dylib: terminate called throwing an exception

我不確定在哪里看,因為我不知道__NSArrayM是什么。 該應用程序似乎正常加載,但是在某些視圖已經加載后,它卻在第一頁凍結,但是某些視圖沒有加載。

似乎您在分配數組之前就已經在訪問數組! 或在viewDidAppear方法中訪問的數組中沒有對象。 請交叉檢查!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM