繁体   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