gpt4 book ai didi

javascript - iOS7 Titanium 上的崩溃问题

转载 作者:行者123 更新时间:2023-11-29 13:00:20 24 4
gpt4 key购买 nike

我在 Titanium Mobile 工作。我遇到了一个问题。我为 iPhone 开发了一个应用程序。它在 iOS6 上运行完美,但现在在 iOS7 上有一些崩溃问题:(。用谷歌搜索但没有任何线索:(我的跟踪日志是:

 [ERROR] The application has crashed with an uncaught exception 'NSRangeException'.
Reason:
*** -[__NSArrayM objectAtIndex:]: index 29 beyond bounds [0 .. 28]
Stack trace:
0 CoreFoundation 0x043ab5c8 __exceptionPreprocess + 152
1 libobjc.A.dylib 0x03eb58b6 objc_exception_throw + 44
2 CoreFoundation 0x0434c4e6 -[__NSArrayM objectAtIndex:] + 246
3 SpotLight 0x0007c9b0 -[TiViewProxy insertSubview:forProxy:] + 1520
4 SpotLight 0x0007d22b -[TiViewProxy relayout] + 2075
5 SpotLight 0x0007bcd3 -[TiViewProxy refreshView:] + 675
6 SpotLight 0x0007d543 -[TiViewProxy layoutChildrenIfNeeded] + 259
7 SpotLight 0x001faba7 +[TiLayoutQueue layoutProxy:] + 87
8 SpotLight 0x001fa972 performLayoutRefresh + 530
9 CoreFoundation 0x04369bd6
__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
10 CoreFoundation 0x043695bd __CFRunLoopDoTimer + 1181
11 CoreFoundation 0x04351628 __CFRunLoopRun + 1816
12 CoreFoundation 0x04350ac3 CFRunLoopRunSpecific + 467
13 CoreFoundation 0x043508db CFRunLoopRunInMode + 123
14 GraphicsServices 0x046059e2 GSEventRunModal + 192
15 GraphicsServices 0x04605809 GSEventRun + 104

16 UIKit 0x01b5fd3b UIApplicationMain + 1225
17 SpotLight 0x000042a8 main + 456
18 SpotLight 0x00002bf5 start + 53
19 ??? 0x00000001 0x0 + 1

有人对此有任何线索。任何帮助都会很棒。

最佳答案

您正在尝试访问不存在的数组地址。您的数组包含 0 到 28 索引范围内的数据,您正在尝试访问索引 29 处的数据。请检查您的 .尝试计算数组索引。请写一些片段,以便我找到确切的问题。

关于javascript - iOS7 Titanium 上的崩溃问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19925648/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com